コード例 #1
0
    void DeferredUpdate()
    {
        MPAPI.mpEndUpdate();
        ExecuteProcessors();

        MPAPI.mpClearCollidersAndForces();
        UpdateKernelParams();
        UpdateMPObjects();
        MPAPI.mpBeginUpdate(Time.deltaTime);
    }
コード例 #2
0
ファイル: MPWorld.cs プロジェクト: vr3d/Unity5Effects
 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);
     }
 }