Reverted handControllerGrab

This commit is contained in:
ericrius1 2015-10-14 11:40:06 -07:00
parent 7fb6b7e272
commit 6cd9bf407f
2 changed files with 2 additions and 3 deletions

View file

@ -177,7 +177,6 @@ function MyController(hand, triggerAction) {
this.continueFarGrabbingNonColliding(); this.continueFarGrabbingNonColliding();
break; break;
case STATE_RELEASE: case STATE_RELEASE:
print("TRIGGER VALUE " + this.triggerValue);
this.release(); this.release();
break; break;
} }
@ -254,7 +253,6 @@ function MyController(hand, triggerAction) {
return; return;
} }
// the trigger is being pressed, do a ray test // the trigger is being pressed, do a ray test
var handPosition = this.getHandPosition(); var handPosition = this.getHandPosition();
var pickRay = { var pickRay = {
@ -570,6 +568,7 @@ function MyController(hand, triggerAction) {
this.setState(STATE_RELEASE); this.setState(STATE_RELEASE);
return; return;
} }
Entities.callEntityMethod(this.grabbedEntity, "continueNearGrabbingNonColliding"); Entities.callEntityMethod(this.grabbedEntity, "continueNearGrabbingNonColliding");
}; };

View file

@ -146,4 +146,4 @@ function cleanup() {
} }
Script.scriptEnding.connect(cleanup); // Script.scriptEnding.connect(cleanup);