I want to move an object along its Y
transform.position.y = Mathf.Lerp(0,1,Time.deltaTime);
then have a series of objects that follow the height by with a slight delay.
thus creating a wave effect.
I want to move an object along its Y
transform.position.y = Mathf.Lerp(0,1,Time.deltaTime);
then have a series of objects that follow the height by with a slight delay.
thus creating a wave effect.
Add a ‘phase’ delay
Mathf.Lerp(0,1,Time.deltaTime+phase); // experiment with phase values
But you may just want to use Mathf.Sin and add that phase as an angle offset.
I would make an array of values myself and count these OR just add all the objects with an offset.
Unless your formular makes it ease-in and -out, then just go for your own counter that counts over time.