Relation between speed and time between spawns

In my game the camera moves upwards. Every second, 0.01f gets added to the speed. While this is happening, i also have spawner attached to the camera, which spawns an object. I want the distance between each object spawned to be the same, but i really can’t figure out a method for this. What needs to happen is, that everytime 0.01f is added to the speed, the frequencey of spawns becomes bigger.

Imagine a linear function where the y axis is speed, and the x axis is time between spawns. So they need to like follow, so the distance between every spawned object is the same.

Hope you understand, if not feel free to ask in depth questions!

You have to instantiate your objects at the right moment. You have speed = distance / time so to have a fixed distance you need time = distance / speed. I don’t know how you instantiate your objects in the spawner but it has to instantiate them every x secondes where x is function of the speed: x = distance / speed (with distance being fixed to whatever value you want).