コード例 #1
0
        //--------------------------------------------------------------
        #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),
            };
        }
コード例 #2
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),
       };
 }
コード例 #3
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),
            };
        }
コード例 #4
0
ファイル: PrismaticJoint.cs プロジェクト: Zolniu/DigitalRune
 //--------------------------------------------------------------
 /// <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),
       };
 }
コード例 #5
0
ファイル: FixedJoint.cs プロジェクト: Zolniu/DigitalRune
 //--------------------------------------------------------------
 /// <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),
       };
 }
コード例 #6
0
ファイル: Hinge2Joint.cs プロジェクト: Zolniu/DigitalRune
 //--------------------------------------------------------------
 /// <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),
       };
 }
コード例 #7
0
        //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),
            };
        }
コード例 #8
0
ファイル: UniversalJoint.cs プロジェクト: Zolniu/DigitalRune
 //--------------------------------------------------------------
 /// <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),
       };
 }
コード例 #9
0
        //--------------------------------------------------------------
        #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),
            };
        }
コード例 #10
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),
            };
        }