mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 20:58:30 +02:00
Merge pull request #8131 from hyperlogic/bug-fix/grab-script-search-ray-distance
Fix for grab script search ray length
This commit is contained in:
commit
86efb3d8bd
1 changed files with 3 additions and 1 deletions
|
@ -1173,10 +1173,12 @@ function MyController(hand) {
|
|||
}
|
||||
|
||||
var rayPickInfo = this.calcRayPickInfo(this.hand);
|
||||
this.intersectionDistance = rayPickInfo.distance;
|
||||
if (rayPickInfo.entityID) {
|
||||
candidateEntities.push(rayPickInfo.entityID);
|
||||
this.entityPropertyCache.addEntity(rayPickInfo.entityID);
|
||||
this.intersectionDistance = rayPickInfo.distance;
|
||||
} else {
|
||||
this.intersectionDistance = 0;
|
||||
}
|
||||
|
||||
var grabbableEntities = candidateEntities.filter(function (entity) {
|
||||
|
|
Loading…
Reference in a new issue