From 5cce4b3c03f96d26af9d5df8b4873aeea9df50b0 Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Wed, 26 Mar 2014 12:14:03 -0700 Subject: [PATCH] added more movement --- examples/bot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/bot.js b/examples/bot.js index c606b55274..acd837e3b8 100644 --- a/examples/bot.js +++ b/examples/bot.js @@ -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; }