mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
added more movement
This commit is contained in:
parent
012c4a63de
commit
5cce4b3c03
1 changed files with 2 additions and 1 deletions
|
@ -128,6 +128,7 @@ function stopWaving() {
|
|||
|
||||
function keepWalking() {
|
||||
Avatar.setJointData(JOINT_R_HIP, Quat.fromPitchYawRollDegrees(walkAmplitude * Math.sin(cumulativeTime * walkFrequency), 0.0, 0.0));
|
||||
Avatar.setJointData(JOINT_R_KNEE, Quat.fromPitchYawRollDegrees(walkAmplitude * Math.sin(cumulativeTime * walkFrequency), 0.0, 0.0));
|
||||
}
|
||||
|
||||
function stopWalking() {
|
||||
|
@ -141,7 +142,7 @@ function updateBehavior(deltaTime) {
|
|||
|
||||
// Hack - right now you need to set the avatar position a bit after the avatar is made to make sure it's there.
|
||||
|
||||
if (CHANCE_OF_MOVING = 0.000) {
|
||||
if (CHANCE_OF_MOVING == 0.000) {
|
||||
Avatar.position = firstPosition;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue