public static Matrix3D EulerAngleToMatrix(Vector3D pEulersAngles) { NewtonMatrix aNewtonMatrix = new NewtonMatrix(Matrix3D.Identity); Newton.NewtonSetEulerAngle(new NewtonVector3(pEulersAngles).NWVector3, aNewtonMatrix.NWMatrix); return aNewtonMatrix.ToDirectX(); }
public static Matrix3D EulerAngleToMatrix(Vector3D pEulersAngles) { NewtonMatrix aNewtonMatrix = new NewtonMatrix(Matrix3D.Identity); Newton.NewtonSetEulerAngle(new NewtonVector3(pEulersAngles).NWVector3, aNewtonMatrix.NWMatrix); return(aNewtonMatrix.ToDirectX()); }
private void InvokeSetTransform(IntPtr pNewtonBody, float[] pMatrix) { NewtonMatrix aMatrix = new NewtonMatrix(pMatrix); OnSetTransform(new CSetTransformEventArgs(aMatrix.ToDirectX())); }
private void InvokeSetTransform(IntPtr pNewtonBody, float[] pMatrix) { NewtonMatrix aMatrix = new NewtonMatrix(pMatrix); OnSetTransform(new CSetTransformEventArgs(aMatrix.ToDirectX())); }