public void RemoveJoint(CCPhysicsJointInfo joint) { foreach (var subjoint in joint.getJoints()) { _space.RemoveConstraint(subjoint); } }
public virtual void OnTouchesEnded(List <CCTouch> touches, CCEvent arg2) { CCMouse.Instance.OnTouchesEnded(touches, this); if (logo.IsMoving) { CCMouse.Instance.IsDragBlocked = logo.IsMoving = false; logo.RunAction(new CCEaseSineInOut(new CCMoveTo(2, logo.InitialPosition))); } if (!CCMouse.Instance.rightclick) { if (CCMouse.Instance.HasBodyJoined) { space.RemoveConstraint(CCMouse.Instance.mouseJoint); CCMouse.Instance.mouseJoint = null; } } }