Example #1
0
        protected override void CopyTo(JointInfo target)
        {
            base.CopyTo(target);
            RopeJointInfo c = target as RopeJointInfo;

            c.localAnchorB = this.localAnchorB;
            c.localAnchorA = this.localAnchorA;
            c.maxLength    = this.maxLength;
        }
 private void DrawJoint(Canvas canvas, RopeJointInfo joint)
 {
     this.DrawLocalDistConstraint(canvas, joint.BodyA, joint.BodyB, joint.LocalAnchorA, joint.LocalAnchorB, 0.0f, joint.MaxLength);
     this.DrawLocalAnchor(canvas, joint.BodyB, joint.LocalAnchorB);
     this.DrawLocalAnchor(canvas, joint.BodyA, joint.LocalAnchorA);
 }