I made a security camera that moves back and forth between two points, and tracks the player if it sees them.
For some reason, the camera moves in a wide arc when moving from point A to point B. When moving from point B to point A, it moves in a straight line. When the camera tracks the player it does it accurately without any arcing.
I’d like for the camera to just move in straight lines all of the time, but I’m not sure what’s causing the arcing.
Sphere is the mesh, currently a placeholder. I move the sphere and not the root because the scanning points A and B are local space vectors that would move if the root rotation were changed.
I don’t think the radial force is affecting this, it’s from the parent and is set to be not active until a certain event fires.
Now that I’m thinking about it, the arc movement I’m seeing is probably just the shortest possible path. When the two points are on the same x or y plane, we don’t really see the issue, but when they’re different, it almost looks like the rotator rotates on one axis first and then the other, which might be making it look like it’s moving in an arc in one direction then in a straight line in the other.