API ReferenceStateTimestepOn this pageTimestep Information on frame/step durations. struct Timestep { // from native code} Fields Methods as_seconds fn as_seconds(self) -> f32 Returns how many seconds elapsed since the last frame. Use this as a multiplier to ensure that things like movement are independent of framerate.