How can I rotate my character as fast as possible?


#1

Hi, I need to rotate my character as fast as possible so I changed rotate speed but still it rotates slow and smooth! please help thanks.


#2

Hi

Sorry, currently there is a bug which causes the agent to not rotate as quickly as possible. It will be limited by its acceleration.

Open the MovementUtilities.cs script and remove the line

sidewaysAcceleration = forwardsAcceleration;

That should solve most of it.
However know that if the acceleration of the agent is too low it will not be able to change its velocity very quickly, which may also result in a lower rotation speed.

You may also want to have a look at the AILerp movement script (see one of the 2D example scenes) which may be better suited for your game.