示例#1
0
 // Remove a Physic Point from the world
 public void RemovePoint(PhysicWorldModel world, PhysicPointModel pointModel, OnPointModelChanged callback = null, object context = null)
 {
     removePointCallbacks[pointModel] = new Eppy.Tuple <OnPointModelChanged, object>(callback, context);
     StateManager.state.RemoveModel(pointModel, OnPointRemoved, world);
 }
示例#2
0
 // Add a Physic Point to the world
 public ModelReference AddPoint(PhysicWorldModel world, PhysicPointModel pointModel, OnPointModelChanged callback = null, object context = null)
 {
     addPointCallbacks[pointModel] = new Eppy.Tuple <OnPointModelChanged, object>(callback, context);
     return(StateManager.state.AddModel(pointModel, OnPointAdded, world));
 }