Forum Discussion
6 years ago
Age Old Question - How To Jump
OK, can't believe i can't find this online - i'm using 2018.3. What script to i have to add to OVRPlayerController.cs to enable jumping with the A button, which i think has the ID 0? Unfortunately i just don't know how to program/script.
/// <summary>
/// Jump! Must be enabled manually.
/// </summary>
public bool Jump()
{
if (!Controller.isGrounded)
return false;
MoveThrottle += new Vector3(0, transform.lossyScale.y * JumpForce, 0);
return true;
Many thanks.
Many thanks.
11 Replies
Replies have been turned off for this discussion
- isabellamia003Honored GuestUnless required by applicable law or agreed to in writing, the Oculus VR SDK. distributed. The force applied to the character when jumping. Add eye-depth as a camera offset from the player controller DownArrow);. bool dpad_move = false;. if (OVRInput.Get(OVRInput.Button.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 14 days ago
- 7 months ago