public static Tuple<HingeJoint, AngleJoint> ConnectWith(this BaseModelBody parentBody, BaseModelBody childBody, Vector2D hingeLocation) { var hinge = new HingeJoint(parentBody, childBody, hingeLocation, new Lifespan()) { DistanceTolerance = 50, Softness = 10000.1 }; var angle = new AngleJoint(parentBody, childBody, new Lifespan()) { Softness = -0.00000001, BiasFactor = 0.3}; return new Tuple<HingeJoint, AngleJoint>(hinge, angle); }
public static Tuple <HingeJoint, AngleJoint> ConnectWith(this BaseModelBody parentBody, BaseModelBody childBody, Vector2D hingeLocation) { var hinge = new HingeJoint(parentBody, childBody, hingeLocation, new Lifespan()) { DistanceTolerance = 50, Softness = 10000.1 }; var angle = new AngleJoint(parentBody, childBody, new Lifespan()) { Softness = -0.00000001, BiasFactor = 0.3 }; return(new Tuple <HingeJoint, AngleJoint>(hinge, angle)); }