mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 18:17:08 +02:00
undo some wrong changes
This commit is contained in:
parent
0fa2a71d0f
commit
fa2b975e8f
1 changed files with 3 additions and 1 deletions
|
@ -239,8 +239,10 @@ Script.include("/~/system/libraries/cloneEntityUtils.js");
|
|||
for (var i = 0; i < nearbyEntityProperties.length; i++) {
|
||||
var props = nearbyEntityProperties[i];
|
||||
var handPosition = controllerData.controllerLocations[this.hand].position;
|
||||
var dist = distanceBetweenPointAndEntityBoundingBox(handPosition, props);
|
||||
var distance = Vec3.distance(handPosition, props.position);
|
||||
if ((distance > NEAR_GRAB_RADIUS * sensorScaleFactor)) {
|
||||
if ((dist > TEAR_AWAY_DISTANCE ||
|
||||
distance > NEAR_GRAB_RADIUS * sensorScaleFactor)) {
|
||||
continue;
|
||||
}
|
||||
if (entityIsGrabbable(props) || entityIsCloneable(props)) {
|
||||
|
|
Loading…
Reference in a new issue