// 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); }
// 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)); }