dead code and print statements

This commit is contained in:
James B. Pollack 2015-12-11 11:51:32 -08:00
parent a31ba089c1
commit 35da54fc6c
2 changed files with 6 additions and 9 deletions

View file

@ -348,8 +348,6 @@ function moveRats() {
}
}
} else {
// no meta rat for this rat
}
})
}
@ -363,8 +361,6 @@ function checkDistanceFromNest(rat) {
if (distance < RAT_IN_NEST_DISTANCE) {
//at nest
removeRatFromScene(rat);
} else {
//not yet at nest
}
}

View file

@ -30,7 +30,7 @@ function flee(thisEntity, target) {
return steer;
} else {
// print('target too far away to flee' + d);
//target too far away to flee
return
}
}
@ -47,7 +47,7 @@ function fleeAllAvatars(thisEntity) {
var entityID = nearbyEntities[entityIndex];
var entityProps = Entities.getEntityProperties(entityID);
if (entityProps.name === 'Hifi-Avatar-Detector') {
//print('found an avatar to flee')
//found an avatar to flee
var MAX_SPEED = 8;
var MAX_FORCE = 8;
@ -62,7 +62,7 @@ function fleeAllAvatars(thisEntity) {
steer = steerVector.limit(MAX_FORCE);
flightVectors.push(steer);
} else {
// print('target too far away from this avatar to flee' + d);
// target too far away from this avatar to flee
}
}
@ -83,7 +83,8 @@ function fleeAvoiderBlocks(thisEntity) {
var entityID = nearbyEntities[entityIndex];
var entityProps = Entities.getEntityProperties(entityID);
if (entityProps.name === 'Hifi-Rat-Avoider') {
// print('found an avoiderblock to flee');
//found an avoiderblock to flee
var MAX_SPEED = 11;
var MAX_FORCE = 6;
var FLEE_AVOIDER_RANGE = 5;
@ -99,7 +100,7 @@ function fleeAvoiderBlocks(thisEntity) {
steer = steerVector.limit(MAX_FORCE);
flightVectors.push(steer);
} else {
//print('target too far away from this avoider to flee' + d);
//target too far away from this avoider to flee
}
}