Forum Discussion

Kubold's avatar
Kubold
Explorer
7 years ago

OVRPlayerController - disable Running?

Hi,

I'm looking through the OVRPlayerController script to disable running with left Touch trigger.

I managed to do it easily for Shift keys here, by changing moveInfluence from 2.0f to 1.0f:

// Run!
if (dpad_move || Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift))
moveInfluence *= 1.0f;

Technically it is still running, but it doesn't matter if it's x1.0 speed. But this doesn't change the left Touch trigger running - it still turns on run mode. How can I disable trigger running?

Thanks!
No RepliesBe the first to reply