Reverted hand controller

This commit is contained in:
ericrius1 2015-10-14 11:31:09 -07:00
parent d072a2efd3
commit 7fb6b7e272
2 changed files with 2 additions and 1 deletions

View file

@ -67,7 +67,7 @@ var MSEC_PER_SEC = 1000.0;
var startTime = Date.now(); var startTime = Date.now();
var LIFETIME = 10; var LIFETIME = 10;
var ACTION_LIFETIME = 10; // seconds var ACTION_LIFETIME = 10; // seconds
var PICKS_PER_SECOND_PER_HAND = 60; var PICKS_PER_SECOND_PER_HAND = 5;
var MSECS_PER_SEC = 1000.0; var MSECS_PER_SEC = 1000.0;
// states for the state machine // states for the state machine

View file

@ -70,6 +70,7 @@
this.intersection = Entities.findRayIntersection(pickRay, true, this.whitelist); this.intersection = Entities.findRayIntersection(pickRay, true, this.whitelist);
//Comment out above line and uncomment below line to see difference in performance between using a whitelist, and not using one //Comment out above line and uncomment below line to see difference in performance between using a whitelist, and not using one
// this.intersection = Entities.findRayIntersection(pickRay, true);
if (this.intersection.intersects) { if (this.intersection.intersects) {
var distance = Vec3.distance(handPosition, this.intersection.intersection); var distance = Vec3.distance(handPosition, this.intersection.intersection);