After adding the AddRigidbody component to the script, even after setting it up to ensure gravity is turned off with the rb.useGravity = false; my older placeholder cube enemies start slowly driving apart from each other when I hit play.
This was initially happening with my new prefab enemy before where it would slowly rotate. However, after I slightly moved the ship, it stopped moving. The cubes are still moving though.
Everything is set up the same as Rick unless I’m missing something somewhere?
In addition to what Raistlin_Majere suggested, check if there are any colliders near the enemies which might be pushing the enemies away. A common mistake is a collider attached to the camera.
The enemies do not have a collider attached, do they? If they don’t have any, they could either be moving away due to some code or due to the timeline animation. That’s hard to tell just by looking at the code. Have you already tried to add Debug.Logs to your code to see what is going on during runtime?