Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I want to know the method of changing the bike's max turn value.
I want to let bike turns 90 degrees to the left or right. So, I found the parameter named "MaxTurn" in the VZPlayer script. But it cannot change the bike's max turning degree when I adjust the MaxTurn value. Is there any parameter can work for it or any function can be called for it?
Ok, we're talking about the VZfit SDK here.

The MaxTurn parameter is the right place to start, but you may also need to adjust LeanIn and LeanFudge.

MaxTurn dictates the limit, in radians, of the avatar movement direction relative to your rest direction. The default is 0.5, for 90 deg set it to 1.57.

LeanIn determines how much the avatar turns to actually follow it's movement. The default is 0.5, set it to 1.0.

LeanFudge determines how much your head offset or tilt (depending on VR platform) affects avatar movement direction. The default is 2, but if you're tripling MaxTurn you may want to triple this to 6.

Note you may find this pretty uncomfortable which is why we have lower values for our games!
Thank you very much. Those values are working successfully, but there is another problem happened while turning 90 degrees to left or right. The bike will automatically go back to the default direction when the avatar stops. I want to keep the movement direction after releasing the A, D key, so what should I do to resolve it.

Thanks for reading it.
To fix that set VZPlayer.RotateAtStop true, and set VZPlayer.SlowRotateLimit to 1

Forum Jump:

Users browsing this thread: 1 Guest(s)