Ejemplo n.º 1
0
 public override void SayGoodbye(Joint joint)
 {
     if (test.m_mouseJoint == joint)
     {
         test.m_mouseJoint = null;
     }
     else
     {
         test.JointDestroyed(joint);
     }
 }
Ejemplo n.º 2
0
 // Let derived tests know that a joint was destroyed.
 public virtual void JointDestroyed(Joint joint)
 {
 }
Ejemplo n.º 3
0
 public abstract void SayGoodbye(Joint joint);
Ejemplo n.º 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;
         }
     }
 }
Ejemplo n.º 5
0
 public void DestroyJoint(Joint joint)
 {
     NativeMethods.b2world_destroyjoint(_worldPtr, joint.JointPtr);
 }