protected override void CopyTo(JointInfo target) { base.CopyTo(target); FixedDistanceJointInfo c = target as FixedDistanceJointInfo; c.worldAnchor = this.worldAnchor; c.localAnchor = this.localAnchor; c.dampingRatio = this.dampingRatio; c.frequency = this.frequency; c.length = this.length; }
private void DrawJoint(Canvas canvas, FixedDistanceJointInfo joint) { this.DrawWorldDistConstraint(canvas, joint.BodyA, joint.LocalAnchor, joint.WorldAnchor, joint.TargetDistance, joint.TargetDistance); this.DrawWorldAnchor(canvas, joint.BodyA, joint.WorldAnchor); this.DrawLocalAnchor(canvas, joint.BodyA, joint.LocalAnchor); }