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();
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");
};

View file

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