From 7fb67e487e6de90592e8301499d62e7ccf86d155 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 23 Feb 2016 16:47:05 -0800 Subject: [PATCH] when releasing a near-grab, zero velocity if there is another grab, regardless of the isInitialGrab flag --- 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 b298ce81b2..f2acfb9b47 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -1650,7 +1650,7 @@ function MyController(hand) { // this next line allowed both: // (1) far-grab, pull to self, near grab, then throw // (2) equip something physical and adjust it with a other-hand grab without the thing drifting - (!this.isInitialGrab && grabData.refCount > 1)) { + grabData.refCount > 1) { noVelocity = true; } }