mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 14:57:00 +02:00
Reverted handControllerGrab
This commit is contained in:
parent
7fb6b7e272
commit
6cd9bf407f
2 changed files with 2 additions and 3 deletions
|
@ -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");
|
||||
};
|
||||
|
||||
|
|
|
@ -146,4 +146,4 @@ function cleanup() {
|
|||
}
|
||||
|
||||
|
||||
Script.scriptEnding.connect(cleanup);
|
||||
// Script.scriptEnding.connect(cleanup);
|
Loading…
Reference in a new issue