mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 04:44:08 +02:00
try calling updateMotionBehaviorFromMenu
This commit is contained in:
parent
f7b34f63c1
commit
e9dd165b1d
1 changed files with 4 additions and 1 deletions
|
@ -92,7 +92,7 @@ function MyController(hand, triggerAction) {
|
|||
this.actionID = null; // action this script created...
|
||||
this.grabbedEntity = null; // on this entity.
|
||||
this.grabbedVelocity = ZERO_VEC; // rolling average of held object's velocity
|
||||
this.state = 0;
|
||||
this.state = STATE_SEARCHING;
|
||||
this.pointer = null; // entity-id of line object
|
||||
this.triggerValue = 0; // rolling average of trigger value
|
||||
var _this = this;
|
||||
|
@ -247,6 +247,7 @@ function MyController(hand, triggerAction) {
|
|||
|
||||
this.previousAvCollision = Menu.isOptionChecked("Enable avatar collisions");
|
||||
Menu.setIsOptionChecked("Enable avatar collisions", false);
|
||||
print("avatar collisions -->" + this.previousAvCollision);
|
||||
MyAvatar.updateMotionBehaviorFromMenu();
|
||||
|
||||
|
||||
|
@ -332,6 +333,7 @@ function MyController(hand, triggerAction) {
|
|||
|
||||
this.previousAvCollision = Menu.isOptionChecked("Enable avatar collisions");
|
||||
Menu.setIsOptionChecked("Enable avatar collisions", false);
|
||||
print("avatar collisions -->" + this.previousAvCollision);
|
||||
MyAvatar.updateMotionBehaviorFromMenu();
|
||||
|
||||
if (!this.triggerSmoothedSqueezed()) {
|
||||
|
@ -504,6 +506,7 @@ function MyController(hand, triggerAction) {
|
|||
this.release = function() {
|
||||
|
||||
Menu.setIsOptionChecked("Enable avatar collisions", this.previousAvCollision);
|
||||
print("avatar collisions -->" + this.previousAvCollision);
|
||||
MyAvatar.updateMotionBehaviorFromMenu();
|
||||
|
||||
this.lineOff();
|
||||
|
|
Loading…
Reference in a new issue