Announcement

Collapse
No announcement yet.

Flap Arms to fly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [OCULUS] Flap Arms to fly

    Does anyone know how this could be setup or is there already a template out there that does this?

    #2
    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 )
    This assumes the up/down direction is the world Z axis, otherwise adjust accordingly.
    CTO | Head of VR Development - Visit us at http://humanxr.com
    My UE4 Tutorials (mostly VR): https://goo.gl/GUvDyV

    Comment


      #3
      I'm trying to do the same thing but with BPs, would anyone mind giving directions to a non-dev on how to achieve this please??

      Comment

      Working...
      X