Forum Discussion
hyejunjeong
7 years agoHonored Guest
I want to enable jumping on the OVRPlayerController.
I am a complete starter. I want to enable jumping function on the OVRPlayerController.
I tried, but it does not work. Please take a look at this and let me know what went wrong. T.T
public bool Jump()
{
bool Jump = Input.GetKey(KeyCode.Space);
if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger))
{
Jump = true;
}
if (Jump)
MoveThrottle += new Vector3(0, transform.lossyScale.y * JumpForce, 0);
if (Jump)
MoveThrottle = (1f + JumpForce) * MoveThrottle;
return true;
}
- I solved the problem thank you!
1 Reply
- hyejunjeongHonored GuestI solved the problem thank you!
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 years ago