ElectricNightOwl / ArmSwinger

ArmSwinger is an artificial VR locomotion library developed on Unity 5.4. ArmSwinger allows you to use your arms to control your position in 3D space in a natural way with minimal disorientation.
http://electricnightowl.com/armswinger/
MIT License
101 stars 30 forks source link

Improve per-frame position saving #27

Open kjack9 opened 7 years ago

kjack9 commented 7 years ago

Positions are currently added to the cache if the player has moved at least rewindMinDistanceChangeToSavePosition world units since the last saved position. However, if the player is moving fast and has moved say 2x that distance, only one position is added to the cache.

The result is that if a player is going fast enough, they can go farther into an out-of-bounds area than if they were going slowly.

Implement a system that accounts for this difference, and consistently rewinds the player at the same point regardless of speed.