예제 #1
0
    public void CreateClothSpheres()
    {
      fxData_.ClearSphereMeshes();
      if ( fxData_.DrawClothColliders )
      {
        if ( SimulationManager.IsEditing() )
        {
          entityManager_.UpdateListClothBodiesGameObjects( listClothBodiesGORadius_ );
          GenerateSphereMeshes();
          SceneView.RepaintAll();
        }
      }

      UpdateClothCollidersRequested = false;
    }
    //-----------------------------------------------------------------------------------
    public void CreateBodyBoxes()
    {
      if ( fxData_.DrawBodyBoxes )
      {

        if ( SimulationManager.IsEditing() )
        {
           eManager_.UpdateListsBodyGameObject( listBodyGOEnabledVisible_, 
                                                     listBodyGODisabledVisible_,
                                                     listBodyGOEnabledHide_, 
                                                     listBodyGODisabledHide_ );
        }

        fxData_.ClearBodyMeshes();

        GenerateBodyBoxMeshes();
        SceneView.RepaintAll();
      }

      UpdateListsBodyGORequested = false;
    }