Hello, I’m trying to create a sequence of spawned objects while they’re moving forward (same velocity to all objects), the spawning occour when the last object spawed is at a distance == 1 from the point that it was created (the spawning point is ever the same).
For example: I instantiate a sphere at position (0,0,0), this sphere has a constant movement forward (vel = 3), when this sphere distantiate 1 from position (0,0,0) a new sphere is created (point (0,0,0), vel = 3). The problem is: the distance between these 2 spheres is diferente for each velocity used.
My scripts: (Img1 attached file)
Image showing what’s happening: (Img2 attached file)
I would like to know how to do (or a tip of how to do) to keep the distance between these 2 spheres with the minimum variation possible independently if the velocity is 1 or 3 for both spheres.
Imagem showing what I’m trying to do: (Img3 attached file)