public void AddGraphic(Graphic item) { lock (syncRoot) { graphics.Add(item); engine.AddBodyRange(bodies); bodies.Clear(); engine.AddJointRange(joints); joints.Clear(); engine.AddLogicRange(physicsLogics); physicsLogics.Clear(); } }
public void AddGraphic(Graphic item) { lock (syncRoot) { graphics.Add(item); engine.AddBodyRange(bodies); bodies.Clear(); engine.AddJointRange(joints); joints.Clear(); engine.AddLogicRange(physicsLogics); physicsLogics.Clear(); } }