Hello. This should be a pretty easy thing but I can't figure it out. I want to use tank controls for my character. However, the turn sensitivity is way too high. I press a turn key (like a or d) and the character spins so fast around like a top. I want him to turn at a reasonable speed so he is not impossible to control. It would also be really nice if he didn't turn at all unless also moving forward so he doesn't just spin in place.
Anyone know how to do this? Thanks
Comments
Any idea on the second thing? How to make him not turn unless moving?
if (AC.KickStarter.player.charState == CharState.Idle)
{
AC.KickStarter.player.turnSpeed = 0f; // Can't turn
}
else
{
AC.KickStarter.player.turnSpeed = 1f; // Can turn
}
Place that in the Update() function of a new C# script and add it to a GameObject in your scene.