Freeze sprite rotation

Hi

In my top down project I use assets - A * Pathfinding, Behavior Designer
I have a collision with sprite rotation of the enemy.
A * Pathfinding moves the enemy and rotates him by Y axis.
I need rotation, because I use the field of view of action from Behavior Designer. Field of view rotating in the direction of movement of the enemy.
During movement enemy flows like a fish, head in the direction of movement :slight_smile:

What I need - Correct direction for enemy - always head up (freeze rotation of sprite)

Hi

You can disable the rotation of the agent and then use a separate script to e.g. switch the sprite. You can for example use the ai.velocity field to determine which sprite to show.

1 Like