mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Reset sensors and body
This commit is contained in:
parent
68e3e23bfc
commit
834755588a
1 changed files with 4 additions and 2 deletions
|
@ -77,7 +77,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
MyAvatar.resetSensors();
|
MyAvatar.resetSensorsAndBody();
|
||||||
|
|
||||||
var that = this;
|
var that = this;
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
|
@ -117,7 +117,9 @@
|
||||||
|
|
||||||
MyAvatar.removeAnimationStateHandler(this.animStateHandlerID);
|
MyAvatar.removeAnimationStateHandler(this.animStateHandlerID);
|
||||||
|
|
||||||
MyAvatar.resetSensors();
|
Script.setTimeout(function() {
|
||||||
|
MyAvatar.resetSensorsAndBody();
|
||||||
|
}, SIT_DELAY);
|
||||||
|
|
||||||
Script.update.disconnect(this, this.update);
|
Script.update.disconnect(this, this.update);
|
||||||
Controller.keyPressEvent.disconnect(this, this.keyPressed);
|
Controller.keyPressEvent.disconnect(this, this.keyPressed);
|
||||||
|
|
Loading…
Reference in a new issue