Hi,
I’m new to nphysics so apologies if this is a silly question. I have a large height map which I’m rendering with opengl (in 3d) and so far have managed to get a ball rolling around the terrain. I’m able to get the position of the body with .position.translation.vector and set the position of my ‘camera’ so that I can see the ball is moving correctly, although it looks like it’s sliding around because the camera always faces the same way.
The next thing I’m going to do is make a simple vehicle and will need to get a matrix from the body of the vehicle to use as my view matrix in opengl, so the view is from the ‘front’ of the vehicle.
How do I get either the matrix OR a direction vector (I already have the position)? I hope that made sense!
Thanks