Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

VZPlayer is our high-level player controller, that translates VZController into comfortable VR motion with our custom physics.

Here's a quick rundown on VZPlayer motion parameters:

  • SpeedFudge - makes you go faster or slower
  • UphillFactor - how much slower you go up hills
  • DownhillFactor - how much faster you go down hills
  • MaxVertSpeed - limits your upward (climbing) and downward (falling) velocity
  • MaxTurn - maximum turn amount
  • LeanFudge - turns you more or less with your lean
  • LeanIn - how much your avatar rotates when swerving
  • LandingHardness - how hard you come down on the ground. Lower values make a softer landing that takes effect sooner
  • LandingRadius - distance from VZPlayer origin that you want to touch ground softly. Set this smaller than your collision volume to feel the ground more. If you set this larger than your collision volume you will never reach the ground!
  • NeckHeight - distance above VZPlayer origin of your virtual neck. Note that the VZPlayer rotates about its origin, while your neck is always kept vertical
  • AllowRotate - set false to only allow strafing with your leaning, ignores your head look
  • AllowRoll - set true to allow the VZPlayer to roll about the forward axis in response to terrain
  • AllowDrift - set true to maintain your velocity in the air even when you stop pedaling
  • BodyPrefab - should always be set to VZController.prefab or similar structure (contains required GameObjects)
  • NearClipPlane - near plane of VR camera
  • FarClipPlane - far plane of VR camera
  • SlowRotateLimit - amount to limit your turning when you are stopped
  • Reverse - put VZPlayer into reverse

In addition to these, your RigidBody settings matter, though note that VZPlayer overrides its rotation and its velocity in the XZ plane.

Note that VZPlayer instantiates its VZController at run time, and marks it to not be destroyed when loading another scene. So you can have multiple scenes each with their own VZPlayer look and settings with VR and controller continuity.

  • No labels