public static Matrix3D EulerAngleToMatrix(Vector3D pEulersAngles)
		{
			NewtonMatrix aNewtonMatrix = new NewtonMatrix(Matrix3D.Identity);
			Newton.NewtonSetEulerAngle(new NewtonVector3(pEulersAngles).NWVector3,
				aNewtonMatrix.NWMatrix);
			return aNewtonMatrix.ToDirectX();
		}
示例#2
0
        public static Matrix3D EulerAngleToMatrix(Vector3D pEulersAngles)
        {
            NewtonMatrix aNewtonMatrix = new NewtonMatrix(Matrix3D.Identity);

            Newton.NewtonSetEulerAngle(new NewtonVector3(pEulersAngles).NWVector3,
                                       aNewtonMatrix.NWMatrix);
            return(aNewtonMatrix.ToDirectX());
        }
示例#3
0
        private void InvokeSetTransform(IntPtr pNewtonBody, float[] pMatrix)
        {
            NewtonMatrix aMatrix = new NewtonMatrix(pMatrix);

            OnSetTransform(new CSetTransformEventArgs(aMatrix.ToDirectX()));
        }
示例#4
0
 private void InvokeSetTransform(IntPtr pNewtonBody, float[] pMatrix)
 {
     NewtonMatrix aMatrix = new NewtonMatrix(pMatrix);
     OnSetTransform(new CSetTransformEventArgs(aMatrix.ToDirectX()));
 }