Moving objects based off an object in a sphere.

Ok … I have a ship that is moving through space … When it reached the edge it is relocated to the _____ Like going out one side of the screen and reappearing on the other side … My problem is how to call all the asteroids to move to the other side in respect to where they are from the ship … What would be the call to move the asteroids to there new positions. There are a few way to go about this. But I keep getting lost in how to even call this …

The best way would probably be to have the asteroids be children of the ship.

You could set the ship as the parent when you instantiate the asteroids:

Instantiate(asteroid, new Vector3(x, y, z), Quaternion.identity, ship.transform);

That didn’t work and where is the x,y,z coming from. …