AIPath2DTopDown without having to rotate the GameObject

Hello,

I have a simple question however I cannot figure out the answer; I wish to use the AIPath2DTopDown script to create a 8-directional movement for my AI. However, I do not wish to rotate the GameObject as the animations are handled on a no rotation basis by using the direction of movement.

I have managed to achieve the type of movement I want with these presets:

The only last modification that I need and cannot figure out is how to achieve the physic based movement without rotating the GameObject. If anyone has some input on this issue I would be very thankful.

Greem


EDIT Solution: Remove the rotate towards and use TargetDirection.normalized * speed * time.deltaTime for movement.

1 Like