Pawn doesn't rotate while following Spline.

Hi,

I have a sphere with AI that only has a job of following a spline loop right now. I added a line trace to it for an added function but then noticed that the sphere doesn’t rotate itself while it follows the path. It is always facing in the same direction.

Is there something I havn’t turned on or allowed for the sphere to be able to turn while following a basic spline path?

Thanks for any help!

Is the Sphere an instance of Character, or an instance of Pawn?

The CharacterMovementComponent has a feature to “orient towards movement” which will turn it in the direction it moves.
The Pawn doesn’t.

If your thing is a Character, then turn on this flag.
If your thing is a Pawn, then you need to implement this yourself in your MovementComponent.

I see, that would explain it. Its a pawn with “floating Character Movement”

I don’t think that component orients the Pawn, so you’ll have to do it yourself.
Using LookAt to calculate the rotation to look forward inside Tick and then updating the pawn global orientation to that, might help.