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!