mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 00:38:47 +02:00
min diff
This commit is contained in:
parent
fa2b975e8f
commit
20a8275343
1 changed files with 2 additions and 2 deletions
|
@ -241,8 +241,8 @@ Script.include("/~/system/libraries/cloneEntityUtils.js");
|
|||
var handPosition = controllerData.controllerLocations[this.hand].position;
|
||||
var dist = distanceBetweenPointAndEntityBoundingBox(handPosition, props);
|
||||
var distance = Vec3.distance(handPosition, props.position);
|
||||
if ((dist > TEAR_AWAY_DISTANCE ||
|
||||
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