From 2b9ec8b6bf4e369316e3288cdf1f95a9b15cd82a Mon Sep 17 00:00:00 2001 From: Eric Levin Date: Wed, 29 Apr 2015 22:13:26 -0700 Subject: [PATCH] fixed bug in grab.js where drop line overlay was not showing in correct position on first grab --- examples/grab.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/grab.js b/examples/grab.js index eca457f0b2..4e0c536a1b 100644 --- a/examples/grab.js +++ b/examples/grab.js @@ -59,7 +59,13 @@ function mousePressEvent(event) { isGrabbing = true; savedGravity = props.gravity; Overlays.editOverlay(dropLine, { - visible: true + visible: true, + start: props.position, + end: Vec3.sum(props.position, { + x: 0, + y: -DROP_DISTANCE, + z: 0 + }) }); Entities.editEntity(grabbedEntity, { gravity: {