コード例 #1
0
ファイル: World.java プロジェクト: wuyun1/loon-simple
 /**
  * Destroy a joint. This may cause the connected bodies to begin colliding.
  *
  * @warning This function is locked during callbacks.
  */
 public void destroyJoint(Joint joint) {
   joints.remove(joint.addr);
   joint.jointEdgeA.other.joints.remove(joint.jointEdgeB);
   joint.jointEdgeB.other.joints.remove(joint.jointEdgeA);
   jniDestroyJoint(addr, joint.addr);
 }