Me and some friends are currently making a game where you fly a spaceship around and you can yaw, pitch roll freely in space. At the moment we've been just moving the spaceship along its models direction vector something like this

m_velocity += m_heading; m_position += m_velocity;

We've also tried to improve on this by adding acceleration

m_acceleration += m_heading; m_velocity += m_acceleration; m_position += m_velocity;

but we have noticed that it makes it really hard to change the space ships direction doing it this way and it ends up 'sliding' for a long time. So it has become apparent we need some sort of angular influence on the direction of the space ship, so that the yaw/pitch/roll of the spaceship model has a greater influence on the direction (like when a vehicle turns its wheels, the car follows the direction of the wheels).

I was hoping there is not a too advanced solution to this because mathematics isn't my forte. I'm somewhat familiar with the term angular velocity (change in rotation?) but i have no idea how to implement this.

Thanks for any help,

- rocklobster