Hello guys, may I ask how to turn off the internal rotation of an entity follower?
I’m using the FollowerEntity to do a 2D pathfinding, although it’s a topdown game, the character should not rotate.
Now the follower.updateRotation = false, so the transform won’t get rotated before the agent moves to a new direction,
but the character circles a little bit at the beginning of the movement if allowRotatingOnSpot = false
or the character waits for a little bit before the start of the movement if allowRotatingOnSpot = true
The circling movement and delay are subtle, but still noticable.
I think it is the internal rotation that causes that, because even though the internal rotation doesn’t get synced to the transform when follower.updateRotation = false, but the internal rotation still needs to perform. But I really don’t want this to cause the issue mentioned above, and my character should not rotate.
You may want to try cranking maxOnSpotRotationSpeed? From the documentation it looks like by default they spin at 720 degrees max speed per second, which means turning 180 would take .25s. That plus turning off rotationSmoothing may get you the behaviour you’re looking for?
Do you have local avoidance on? I noticed better snapping rotation when I disabled it on my end. Try that and let me know if it works? Even if you need it, we can find a way to make it work
hi hi, yes indeed, the agent has local avoidance enabled and the ROVSimulator is running, although I’m testing with only 1 agent being active in the hierarchy.
If you can load this gif file below, you can see there’s no curved path if the character moves with no direction change, but a quite noticiable curve when it moves towards the oppsite direction. It’s recorded when local avoidance is false and ROVSimulator is inactive.