fixed bug in grab.js where drop line overlay was not showing in correct position on first grab

This commit is contained in:
Eric Levin 2015-04-29 22:13:26 -07:00
parent 40d2e97d44
commit 2b9ec8b6bf

View file

@ -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: {