mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Merge pull request #8539 from hyperlogic/bug-fix/snappy-search-beam
When trigger is pulled, snap search beam to correct length instead of animating
This commit is contained in:
commit
eb0a8db0af
1 changed files with 5 additions and 0 deletions
|
@ -1319,6 +1319,11 @@ function MyController(hand) {
|
|||
|
||||
this.searchEnter = function() {
|
||||
mostRecentSearchingHand = this.hand;
|
||||
var rayPickInfo = this.calcRayPickInfo(this.hand);
|
||||
if (rayPickInfo.entityID || rayPickInfo.overlayID) {
|
||||
this.intersectionDistance = rayPickInfo.distance;
|
||||
this.searchSphereDistance = this.intersectionDistance;
|
||||
}
|
||||
};
|
||||
|
||||
this.search = function(deltaTime, timestamp) {
|
||||
|
|
Loading…
Reference in a new issue