Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PointOnLineConstraint"/> class.
 /// </summary>
 public PointOnLineConstraint()
 {
     _linearLimit = new LinearLimit
     {
         Minimum = new Vector3(float.NegativeInfinity, 0, 0),
         Maximum = new Vector3(float.PositiveInfinity, 0, 0),
     };
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HingeJoint"/> class.
 /// </summary>
 public HingeJoint()
 {
     _linearLimit = new LinearLimit
     {
         Minimum = new Vector3(0, 0, 0),
         Maximum = new Vector3(0, 0, 0),
     };
     _angularLimit = new AngularLimit
     {
         Minimum = new Vector3(float.NegativeInfinity, 0, 0),
         Maximum = new Vector3(float.PositiveInfinity, 0, 0),
     };
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FixedJoint"/> class.
 /// </summary>
 public FixedJoint()
 {
     _linearLimit = new LinearLimit
     {
         Minimum = new Vector3(0, 0, 0),
         Maximum = new Vector3(0, 0, 0),
     };
     _angularLimit = new AngularLimit
     {
         Minimum = new Vector3(0, 0, 0),
         Maximum = new Vector3(0, 0, 0),
     };
 }
Esempio n. 4
0
        //public float RelativePosition
        //{
        //  get { return _angularLimit.RelativePosition.X; }
        //}



        /// <summary>
        /// Initializes a new instance of the <see cref="Hinge2Joint"/> class.
        /// </summary>
        public Hinge2Joint()
        {
            _linearLimit = new LinearLimit
            {
                Minimum = new Vector3(0, 0, 0),
                Maximum = new Vector3(0, 0, 0),
            };
            _angularLimit = new AngularLimit
            {
                Minimum = new Vector3(-ConstantsF.PiOver4, 0, float.NegativeInfinity),
                Maximum = new Vector3(ConstantsF.PiOver4, 0, float.PositiveInfinity),
            };
        }
Esempio n. 5
0
        //public float RelativePosition
        //{
        //  get { return _angularLimit.RelativePosition.X; }
        //}



        /// <summary>
        /// Initializes a new instance of the <see cref="UniversalJoint"/> class.
        /// </summary>
        public UniversalJoint()
        {
            _linearLimit = new LinearLimit
            {
                Minimum = new Vector3(0, 0, 0),
                Maximum = new Vector3(0, 0, 0),
            };
            _angularLimit = new AngularLimit
            {
                Minimum = new Vector3(-ConstantsF.PiOver4, 0, -ConstantsF.PiOver4),
                Maximum = new Vector3(ConstantsF.PiOver4, 0, ConstantsF.PiOver4),
            };
        }