In my engine I do this:
NewtonBodySetMatrix(rigidBodyBox,mat.grid)
However, I rewrote MiniB3D's matrix routines to work with a left-handed coordinate system. MiniB3D stores the z-axis backwards and renders it in a right-handed coord system, so I am not sure if you will have to make changes to the matrix you give Newton.
NewtonBodySetMatrix(rigidBodyBox,mat.grid)
However, I rewrote MiniB3D's matrix routines to work with a left-handed coordinate system. MiniB3D stores the z-axis backwards and renders it in a right-handed coord system, so I am not sure if you will have to make changes to the matrix you give Newton.