Ejemplo n.º 1
0
        protected override void CopyTo(JointInfo target)
        {
            base.CopyTo(target);
            FixedAngleJointInfo c = target as FixedAngleJointInfo;

            c.angle      = this.angle;
            c.biasFactor = this.biasFactor;
            c.softness   = this.softness;
            c.maxImpulse = this.maxImpulse;
        }
Ejemplo n.º 2
0
 private void DrawJoint(Canvas canvas, FixedAngleJointInfo joint)
 {
     this.DrawLocalAngleConstraint(canvas, joint.BodyA, Vector2.Zero, joint.TargetAngle, joint.BodyA.GameObj.Transform.Angle, joint.BodyA.BoundRadius);
 }