From 1f6e45d135effafe574782812beb0d122338bb45 Mon Sep 17 00:00:00 2001 From: ericrius1 Date: Wed, 6 Jan 2016 15:10:53 -0800 Subject: [PATCH] Fix for close grab jumping --- examples/controllers/handControllerGrab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index 7700001cc5..bab356ee2c 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -1370,7 +1370,7 @@ function MyController(hand) { var currentObjectPosition = grabbedProperties.position; var offset = Vec3.subtract(currentObjectPosition, handPosition); this.offsetPosition = Vec3.multiplyQbyV(Quat.inverse(Quat.multiply(handRotation, this.offsetRotation)), offset); - if (this.temporaryPositionOffset) { + if (this.temporaryPositionOffset && this.state != STATE_NEAR_GRABBING) { this.offsetPosition = this.temporaryPositionOffset; } }