Happy new year and hope you have an excellent 2025!
It would be great if you can implement a way to be able to rotate an agent however needed (through transform directly) and then upon syncing, the follower entity adopts the rotation of the gameobject.
Currently, the gameobject will snap to the follower entities rotation. Basically for an easy way to get the agent to face a certain direction.
If you call agent.SetDestination(destination, rotation)
, the second overload will provide a facing direction for the unit to rotate towards. Does that help in your case? You can also have them rotate on where they’re standing currently by just setting destination to their current position, and giving a new rotation.
It does work but its slower and skips a few frames unfortunately. If there was a way to get the entity to adopt the new rotation immediately it would be awesome. Just a request honestly!
1 Like
Ah okay I see directly what you’re asking then, yeah. A little more nuanced than just setting the rotation. I’ll tag @aron_granberg here then and see if he has any feedback