From 3a90e175e01225416808ea5d1184fd94c0c8421c Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 24 Feb 2014 14:34:13 -0800 Subject: [PATCH] tweaks to bot script --- examples/bot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/bot.js b/examples/bot.js index 8ac718e34d..53f723381c 100644 --- a/examples/bot.js +++ b/examples/bot.js @@ -18,8 +18,8 @@ function getRandomInt (min, max) { } // choose a random x and y in the range of 0 to 50 -positionX = getRandomFloat(0, 50); -positionZ = getRandomFloat(0, 50); +positionX = getRandomFloat(0, 18); +positionZ = getRandomFloat(0, 18); // change the avatar's position to the random one Avatar.position = {x: positionX, y: 0, z: positionZ}; @@ -49,6 +49,6 @@ if (botNumber <= 20) { // set the face model fst using the bot number // there is no need to change the body model - we're using the default Avatar.faceModelURL = "https://s3-us-west-1.amazonaws.com/highfidelity-public/meshes/" + newFaceFilePrefix + ".fst"; -Avatar.bodyModelURL = "https://s3-us-west-1.amazonaws.com/highfidelity-public/meshes/" + newBodyFilePrefix + ".fst"; +Avatar.skeletonModelURL = "https://s3-us-west-1.amazonaws.com/highfidelity-public/meshes/" + newBodyFilePrefix + ".fst"; Agent.isAvatar = true; \ No newline at end of file