-
-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Interaction): ensure touched object is always set after quick grab
There was an issue when grabbing and releasing an object then quickly grabbing again would leave the touchedObject in a delayed state of not being touched, meaning the use method on an object would not trigger because it thought the object being grabbed wasn't being touched. It would catch up a second or so later, but meant that objects would feel like they couldn't be used on first pick up. This commit now resolves the issue by checking on the use method if the touched object is null then do a sanity check on the grabbed object.
- Loading branch information
1 parent
7187fed
commit f30ac8c
Showing
2 changed files
with
45 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters