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:
Brad Davis 2016-08-30 11:13:58 -07:00 committed by GitHub
commit eb0a8db0af

View file

@ -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) {