mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 01:04:11 +02:00
Fix for grab script search ray length
This commit is contained in:
parent
da74114b32
commit
8bf72f28da
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