ViveSoftware / ViveInputUtility-Unity

A toolkit that helps developing/prototyping VR apps.
http://u3d.as/uF7
Other
352 stars 82 forks source link

Cache reset poses so effectTargets maintain position #117

Open JeffBail opened 5 years ago

JeffBail commented 5 years ago

If the effectTargets are moved after the application is running when OnColliderEventPressUp restores the positions from resetPoses back into the effectTargets they'll get restored back to their original position in the scene instead of their updated positions. Called CacheResetPoses() from OnColliderEventPressEnter to update the cache so the restore works properly.

This is an additional fix to issue #114.