Reset sensors and body

This commit is contained in:
Atlante45 2017-02-22 12:13:22 -08:00
parent 68e3e23bfc
commit 834755588a

View file

@ -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);