mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 14:57:00 +02:00
Reverted hand controller
This commit is contained in:
parent
d072a2efd3
commit
7fb6b7e272
2 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,7 @@ var MSEC_PER_SEC = 1000.0;
|
|||
var startTime = Date.now();
|
||||
var LIFETIME = 10;
|
||||
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;
|
||||
|
||||
// states for the state machine
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
|
||||
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
|
||||
// this.intersection = Entities.findRayIntersection(pickRay, true);
|
||||
|
||||
if (this.intersection.intersects) {
|
||||
var distance = Vec3.distance(handPosition, this.intersection.intersection);
|
||||
|
|
Loading…
Reference in a new issue