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