I have a ship which rotates around the x- and y-axis and move in the direction of rotation.
My only problem is, that the View doesn't follow properly! It should follow behind the ship looking at it all the time. I tried it this way:
vpNewPosition.x = shipPosition.x + vpSTARTX; vpNewPosition.y = shipPosition.y + vpSTARTY; vpNewPosition.z = shipPosition.z + vpSTARTZ;
vpTrans3d.lookAt(vpNewPosition, shipPosition, vUp);
But this doesn't work properly for example my view always looks upwards, so it looks like the ship turns around the z-axis, but only the view doesn't follow!!!
The second step would be to smooth the camera movement and rotation, so that you can see the rotation and movement of the ship!!! Can anyone help me???