ExtendRealityLtd / ExtendRealityLtd/VRTK

Jumping with Headset Movement

Open
#393 5 comments 0 reactions 0 assignees View on GitHub
feature good first issue help wanted
Dominant language
C#
Stars
3.7k
Forks
974
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.