Does anyone know how this could be setup or is there already a template out there that does this?
Announcement
Collapse
No announcement yet.
Flap Arms to fly
Collapse
X
-
Interesting use case. The simplest way to do it is to manually calculate the (vertical) speed of the motion controllers on your Tick Event and use that information to activate/deactivate the fly mode. To avoid cheating, you can use a branch to also check the horizontal distance/position respect to the HMD and make sure the arms are actually extended away from it. Then (pseudocode):
Code:MCSpeed = ( MCWorldPosition[current tick] - MCWorldPosition[previous tick] ) / DeltaTime MCVerticalSpeed = MCSpeed .dotproduct. [0,0,1] bFlyMode = ( MCVerticalSpeed > MinVerticalSpeedFlyMode )
CTO | Head of VR Development - Visit us at http://humanxr.com
My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV
Comment