Jump to content

Lean-To-Move: Difference between revisions

Neo222 (talk | contribs)
No edit summary
Neo222 (talk | contribs)
No edit summary
Line 19: Line 19:
===Steps===
===Steps===
[[File:lean-to-move1.png|400px]]
[[File:lean-to-move1.png|400px]]
When the player initializes Lean-to-Move, the HMD's original position is saved.
When the player initializes Lean-to-Move, the HMD's original position is saved.


[[File:lean-to-move2.png|400px]]
[[File:lean-to-move2.png|400px]]
As the player leans away from the origin, the distance from the origin to the HMD is calculated. If the distance is less than the lean threshold, then no movement is created.
As the player leans away from the origin, the distance from the origin to the HMD is calculated. If the distance is less than the lean threshold, then no movement is created.


[[File:lean-to-move3.png|400px]]
[[File:lean-to-move3.png|400px]]
As the HMD goes past the lean threshold, the displacement from the lean threshold boundary to the HMD is used as the velocity vector in the game. The further the HMD from the boundary, the faster the player goes. Returning the HMD to the origin brings the player to a full stop.
As the HMD goes past the lean threshold, the displacement from the lean threshold boundary to the HMD is used as the velocity vector in the game. The further the HMD from the boundary, the faster the player goes. Returning the HMD to the origin brings the player to a full stop.