void DeferredUpdate() { MPAPI.mpEndUpdate(); ExecuteProcessors(); MPAPI.mpClearCollidersAndForces(); UpdateKernelParams(); UpdateMPObjects(); MPAPI.mpBeginUpdate(Time.deltaTime); }
static void DeferredUpdate() { foreach (MPWorld w in s_instances) { MPAPI.mpEndUpdate(w.GetContext()); } foreach (MPWorld w in s_instances) { s_current = w; MPAPI.mpCallHandlers(w.GetContext()); MPAPI.mpClearCollidersAndForces(w.GetContext()); w.CallUpdateRoutines(); w.UpdateKernelParams(); s_current = null; } UpdateMPObjects(); foreach (MPWorld w in s_instances) { MPAPI.mpBeginUpdate(w.GetContext(), Time.deltaTime); } }