ExtendRealityLtd/VRTK

Jumping with Headset Movement

Open

#393 opened on 2016年8月12日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)C# (3,663 stars) (997 forks)batch import
featuregood first issuehelp wanted

説明

I was playing around with the Climbing/Falling demo and absolutely loved it. The sensation of dropping off the tower is exhilarating, especially when you have to take a moment to remember the height is not real despite being rather unnatural to 'want' to drop off from a great height. :smile:

Coupled with practicing Jumping from grabbable surface to grabbable surface, that sensation too feeling great, I was thinking it might be quite cool to have a simple jump mechanic built into the headset that doesn't require actual jumping, nor even a great deal of effort (Threshold parameter). Essentially, if you were to quickly bend your knees and then stand up quickly, you would jump.

Mind you in VR you can easily be standing and crouching regularly in some games, so you'd have to test for the magnitude of change along the Y axis in both directions. Quick down-to-up movements of the HMD would result in a jump. Quick down movements (dodging incoming fire) without the equally quick upward movement would do nothing. You would have to slightly yet quickly crouch down the quickly stand back up to initiate the jump.

All these parameters would be tweakable, such as Jump Window(if you quickly crouch but then don't quickly stand within the window, you'll be considered crouching and won't jump), Required Crouch Depth and both the Required Magnitude of the crouch and the subsequent speed of the standing (perhaps these could be tied to a single magnitude, but I was considering that people may do one more quickly than the other).

Thoughts? Could be a fun addition.

コントリビューターガイド