Solved
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;
}
