mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +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();
|
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");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -146,4 +146,4 @@ function cleanup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Script.scriptEnding.connect(cleanup);
|
// Script.scriptEnding.connect(cleanup);
|
Loading…
Reference in a new issue