Tried a few different versions of Unity and this problem persists... very weird. I'm going to have to fire up my old laptop and see if it behaves the same way because I honestly don't remember...
OK, so I am not sure why, but maybe you know
It seems this is related to 'Tilt Steering' setting - but the interesting thing is that when I open the VZController prefab I can see this is not set (prefab.jpg) ...
but when I go into Play mode, and am playing the game, I click into the VZController object that has been created, and Tilt Steering is enabled (play_mode.jpg)
If I uncheck this box, then leaning forward/back with W+S works again -- but do you have any idea why it is getting checked when I go into Play mode but is not actually enabled in the prefab? Is there something in the code that enables this in certain circumstances?
Edit: I guess it's this bit, but I'm not sure why it behaves this way, I could swear it didn't always. I am developing for the Quest for what that's worth.
OK, so I am not sure why, but maybe you know
It seems this is related to 'Tilt Steering' setting - but the interesting thing is that when I open the VZController prefab I can see this is not set (prefab.jpg) ...
but when I go into Play mode, and am playing the game, I click into the VZController object that has been created, and Tilt Steering is enabled (play_mode.jpg)
If I uncheck this box, then leaning forward/back with W+S works again -- but do you have any idea why it is getting checked when I go into Play mode but is not actually enabled in the prefab? Is there something in the code that enables this in certain circumstances?
Edit: I guess it's this bit, but I'm not sure why it behaves this way, I could swear it didn't always. I am developing for the Quest for what that's worth.
Code:
protected virtual void Awake()
{
#if (UNITY_ANDROID && !VZ_SNAPDRAGONVR) || UNITY_IOS
# if VZ_GOOGLEVR
TiltSteering = !GvrHeadset.SupportsPositionalTracking;
# elif VZ_GEARVR
TiltSteering = (OVRPlugin.GetSystemHeadsetType() != OVRPlugin.SystemHeadset.Oculus_Quest);
# else
TiltSteering = true;
# endif
#else
TiltSteering = false;
#endif