Time Offset for waves/control

I added another serialized member variable called timeOffset, then, when I’m calculating cycles I do:

float cycles = (Time.time + timeOffset) / period;

That way I can adjust where in time the object is along the curve, which allows for more control, as well as being able to create waves if you change the offset of each object in a row a little bit. :slight_smile:

1 Like

Oh sounds useful… my moving object somehow after death and you return to the same level makes the falling ceiling start where the last person died so something like that sounds useful!

Privacy & Terms