
I know this is probably something really simple that I'm overlooking but I am at a standstill and I need some help. What I've managed to do is to create some random path nodes and I use a spline path to make a spaceship move smoothly along the new path that is created. As soon as the ship comes within 50 units of the last node a new set of random nodes is generated. That's working pretty good. But what I would like to do is have the spaceship bank or tilt (increasing the banking angle with a sharper curve and less bank with a less sharp turn) a certain amount of degrees towards the center of the radius of curvature. I'm thinking that the rotation will need to be around the local axes of the forward facing vector of the ship. Seems like the amount of bank angle will depend upon the sharpness of the turn and its radius. Any suggestions or books that may cover this topic is appreciated.