Hi, im trying to stop my enemies while making them able to rotate towards the target.
I tried setting isStopped to true and update rotation to true but enemy doesn’t rotate in this setup.So I also tried setting its speed to 0 but it effects rotation also.So I also tried setting canMove to false but it effects rotation also. Is there any way other than changing rotation by myself with setting update rotation to false ?
So the only two ways to stop movement is isStopped and simulateMovement- at least as far as methods to “automatically stop doing anything when changed” go. Both stop rotation completely (or from what I’m seeing) so I don’t think so unless you actively change it’s rotation in either the ECS component or just rotation itself when updateRotation is false.
Sounds like the movement flags in your setup freeze everything, so you may need to separate rotation logic from movement—either by using a custom rotate-toward-target script or by tweaking the agent’s acceleration/velocity so only movement is halted while rotation still updates.