mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36: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);
|
var rayPickInfo = this.calcRayPickInfo(this.hand);
|
||||||
this.intersectionDistance = rayPickInfo.distance;
|
|
||||||
if (rayPickInfo.entityID) {
|
if (rayPickInfo.entityID) {
|
||||||
candidateEntities.push(rayPickInfo.entityID);
|
candidateEntities.push(rayPickInfo.entityID);
|
||||||
this.entityPropertyCache.addEntity(rayPickInfo.entityID);
|
this.entityPropertyCache.addEntity(rayPickInfo.entityID);
|
||||||
|
this.intersectionDistance = rayPickInfo.distance;
|
||||||
|
} else {
|
||||||
|
this.intersectionDistance = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
var grabbableEntities = candidateEntities.filter(function (entity) {
|
var grabbableEntities = candidateEntities.filter(function (entity) {
|
||||||
|
|
Loading…
Reference in a new issue