//-------------------------------------------------------------- #region Creation & Cleanup //-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="PointOnPlaneConstraint"/> class. /// </summary> public PointOnPlaneConstraint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(float.NegativeInfinity, float.NegativeInfinity, 0), Maximum = new Vector3F(float.PositiveInfinity, float.PositiveInfinity, 0), }; }
//-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="PointOnPlaneConstraint"/> class. /// </summary> public PointOnPlaneConstraint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(float.NegativeInfinity, float.NegativeInfinity, 0), Maximum = new Vector3F(float.PositiveInfinity, float.PositiveInfinity, 0), }; }
//-------------------------------------------------------------- #region Creation & Cleanup //-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="PrismaticJoint"/> class. /// </summary> public PrismaticJoint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(float.NegativeInfinity, 0, 0), Maximum = new Vector3F(float.PositiveInfinity, 0, 0), }; _angularLimit = new AngularLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; }
//-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="PrismaticJoint"/> class. /// </summary> public PrismaticJoint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(float.NegativeInfinity, 0, 0), Maximum = new Vector3F(float.PositiveInfinity, 0, 0), }; _angularLimit = new AngularLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; }
//-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="FixedJoint"/> class. /// </summary> public FixedJoint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; _angularLimit = new AngularLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; }
//-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="Hinge2Joint"/> class. /// </summary> public Hinge2Joint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; _angularLimit = new AngularLimit { Minimum = new Vector3F(-ConstantsF.PiOver4, 0, float.NegativeInfinity), Maximum = new Vector3F(ConstantsF.PiOver4, 0, float.PositiveInfinity), }; }
//public float RelativePosition //{ // get { return _angularLimit.RelativePosition.X; } //} #endregion //-------------------------------------------------------------- #region Creation & Cleanup //-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="Hinge2Joint"/> class. /// </summary> public Hinge2Joint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; _angularLimit = new AngularLimit { Minimum = new Vector3F(-ConstantsF.PiOver4, 0, float.NegativeInfinity), Maximum = new Vector3F(ConstantsF.PiOver4, 0, float.PositiveInfinity), }; }
//-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="UniversalJoint"/> class. /// </summary> public UniversalJoint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; _angularLimit = new AngularLimit { Minimum = new Vector3F(-ConstantsF.PiOver4, 0, -ConstantsF.PiOver4), Maximum = new Vector3F(ConstantsF.PiOver4, 0, ConstantsF.PiOver4), }; }
//-------------------------------------------------------------- #region Creation & Cleanup //-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="FixedJoint"/> class. /// </summary> public FixedJoint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; _angularLimit = new AngularLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; }
//public float RelativePosition //{ // get { return _angularLimit.RelativePosition.X; } //} #endregion //-------------------------------------------------------------- #region Creation & Cleanup //-------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="UniversalJoint"/> class. /// </summary> public UniversalJoint() { _linearLimit = new LinearLimit { Minimum = new Vector3F(0, 0, 0), Maximum = new Vector3F(0, 0, 0), }; _angularLimit = new AngularLimit { Minimum = new Vector3F(-ConstantsF.PiOver4, 0, -ConstantsF.PiOver4), Maximum = new Vector3F(ConstantsF.PiOver4, 0, ConstantsF.PiOver4), }; }