public override void SayGoodbye(Joint joint) { if (test.m_mouseJoint == joint) { test.m_mouseJoint = null; } else { test.JointDestroyed(joint); } }
// Let derived tests know that a joint was destroyed. public virtual void JointDestroyed(Joint joint) { }
public abstract void SayGoodbye(Joint joint);
public override void JointDestroyed(Joint joint) { for (int i = 0; i < 8; ++i) { if (m_joints[i] == joint) { m_joints[i] = null; break; } } }
public void DestroyJoint(Joint joint) { NativeMethods.b2world_destroyjoint(_worldPtr, joint.JointPtr); }