static void DispatchPhysicsEvents(object sender) { PhysicsStopwatch.Stop(); float delta = PhysicsStopwatch.ElapsedMilliseconds / 1000f; PhysicsStopwatch.Reset(); PhysicsStopwatch.Start(); // dispatch PhysicsUpdated(sender, new TimeEventArgs(delta)); }
public static void ResumeRender() { PhysicsTimer.Start(); PhysicsStopwatch.Reset(); PhysicsStopwatch.Start(); }