mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
When trigger is pulled, snap search beam to correct length instead of animating.
This improves interaction on web browser tablets. Instead of the beam shooting through the tablet and animating back to the surface, it starts at the correct length.
This commit is contained in:
parent
3890197efe
commit
3ed11d2e5f
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