Thanks. That code is a little old, and I've since changed it to just instantly run throught physics-only with a fixed timestep of 0.0333333 (1/30th), recording the entire thing, then synchronizing playback frame-by frame with the video, so I can simultaneously scrub them side by side.Assuming FixedUpdate2() is being called by FixedUpdate(), this code is incorrect and will leave a frame rate dependent mismatch between the simulation and the real video proportional to the difference in graphics update frequency, physics frequency, and project vsynchv settings. On a 60Hz monitor with 30 fps (skipping every second v-blank), the ratio is 30/50. At 60 fps (standard vsynch), the ratio is 60/50, etc.. On a 75Hz or other frequency monitor with vsynch enabled, the results will change accordingly.
Last edited: