Exemplo n.º 1
0
		public static Matrix3D EulerAngleToMatrix(Vector3D pEulersAngles)
		{
			NewtonMatrix aNewtonMatrix = new NewtonMatrix(Matrix3D.Identity);
			Newton.NewtonSetEulerAngle(new NewtonVector3(pEulersAngles).NWVector3,
				aNewtonMatrix.NWMatrix);
			return aNewtonMatrix.ToDirectX();
		}
Exemplo n.º 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());
        }
Exemplo n.º 3
0
        private void InvokeSetTransform(IntPtr pNewtonBody, float[] pMatrix)
        {
            NewtonMatrix aMatrix = new NewtonMatrix(pMatrix);

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