mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 21:32:31 +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;
|
||||
}
|
||||
|
||||
MyAvatar.resetSensors();
|
||||
MyAvatar.resetSensorsAndBody();
|
||||
|
||||
var that = this;
|
||||
Script.setTimeout(function() {
|
||||
|
@ -117,7 +117,9 @@
|
|||
|
||||
MyAvatar.removeAnimationStateHandler(this.animStateHandlerID);
|
||||
|
||||
MyAvatar.resetSensors();
|
||||
Script.setTimeout(function() {
|
||||
MyAvatar.resetSensorsAndBody();
|
||||
}, SIT_DELAY);
|
||||
|
||||
Script.update.disconnect(this, this.update);
|
||||
Controller.keyPressEvent.disconnect(this, this.keyPressed);
|
||||
|
|
Loading…
Reference in a new issue