From a65f81c71aa26cfeb0f49a6721cf47d0707d09ed Mon Sep 17 00:00:00 2001 From: barnold1953 Date: Wed, 30 Jul 2014 18:25:58 -0700 Subject: [PATCH] Random start position for bot --- examples/bot_procedural.js. | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/bot_procedural.js. b/examples/bot_procedural.js. index 00c2829924..265b887e0a 100644 --- a/examples/bot_procedural.js. +++ b/examples/bot_procedural.js. @@ -55,8 +55,7 @@ var HEAD_TURN_RATE = 0.05; var PITCH_RANGE = 15.0; var YAW_RANGE = 35.0; -//var firstPosition = { x: getRandomFloat(X_MIN, X_MAX), y: Y_PELVIS, z: getRandomFloat(Z_MIN, Z_MAX) }; -var firstPosition = { x: 0.5, y: Y_PELVIS, z: 0.5 }; +var firstPosition = { x: getRandomFloat(X_MIN, X_MAX), y: Y_PELVIS, z: getRandomFloat(Z_MIN, Z_MAX) }; var targetPosition = { x: 0, y: 0, z: 0 }; var targetOrientation = { x: 0, y: 0, z: 0, w: 0 }; var currentOrientation = { x: 0, y: 0, z: 0, w: 0 };