diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index 0b761c6559..d8d7934191 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -177,7 +177,6 @@ function MyController(hand, triggerAction) { this.continueFarGrabbingNonColliding(); break; case STATE_RELEASE: - print("TRIGGER VALUE " + this.triggerValue); this.release(); break; } @@ -254,7 +253,6 @@ function MyController(hand, triggerAction) { return; } - // the trigger is being pressed, do a ray test var handPosition = this.getHandPosition(); var pickRay = { @@ -570,6 +568,7 @@ function MyController(hand, triggerAction) { this.setState(STATE_RELEASE); return; } + Entities.callEntityMethod(this.grabbedEntity, "continueNearGrabbingNonColliding"); }; diff --git a/examples/painting/whiteboard/whiteboardSpawner.js b/examples/painting/whiteboard/whiteboardSpawner.js index 43a490a67e..3e89775ff0 100644 --- a/examples/painting/whiteboard/whiteboardSpawner.js +++ b/examples/painting/whiteboard/whiteboardSpawner.js @@ -146,4 +146,4 @@ function cleanup() { } -Script.scriptEnding.connect(cleanup); \ No newline at end of file +// Script.scriptEnding.connect(cleanup); \ No newline at end of file