mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 06:53:00 +02:00
Merge pull request #2317 from ey6es/master
Return the legs to the default position when we stop "crazylegs."
This commit is contained in:
commit
6588002c8b
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