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