Hello everyone How do I make sure that the axis doesn’t flip when hovering over the target? If I position the object and target in the usual way, and rotate the target around the object in the X-Z plane, then everything is fine.
But when I move the target in the Y-Z plane around the object, then at some point it flips.
How can I fix this? Why is this happening?
To hover, I use the LookAt command.
I also tried the angle and set only one rotation angle for the object, but it still turns over.