mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
Return the legs to the default position when we stop the script.
This commit is contained in:
parent
37ae5142a6
commit
608fa5869d
1 changed files with 7 additions and 0 deletions
|
@ -21,3 +21,10 @@ Script.update.connect(function(deltaTime) {
|
||||||
MyAvatar.setJointData("joint_L_knee", Quat.fromPitchYawRollDegrees(0.0, 0.0,
|
MyAvatar.setJointData("joint_L_knee", Quat.fromPitchYawRollDegrees(0.0, 0.0,
|
||||||
AMPLITUDE * (1.0 - Math.sin(cumulativeTime * FREQUENCY))));
|
AMPLITUDE * (1.0 - Math.sin(cumulativeTime * FREQUENCY))));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Script.scriptEnding.connect(function() {
|
||||||
|
MyAvatar.clearJointData("joint_R_hip");
|
||||||
|
MyAvatar.clearJointData("joint_L_hip");
|
||||||
|
MyAvatar.clearJointData("joint_R_knee");
|
||||||
|
MyAvatar.clearJointData("joint_L_knee");
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue