Thanks for the code guys (especially for dmc for starting it all).
I had been thinking about making a small stunt racer style of game and this will help immensely. I've spent a lot of hours going through the code to clean it up and make it easier to read for myself. I've gotten rid of most of the global vars (by adding them to the VObject which I think is where they really belong) and fixed the reverse steering issue. Once I'm done I think I'll look at modifications etc. (this is a learning process for me as math has never been my strong point)
I was reading one of the links posted here on car physics and I might try changing the DELTA_TIME value to see if that stops the wild out of control values that can happen in certain collisions.
In any event, just wanted to thank you all for your contributions.
I had been thinking about making a small stunt racer style of game and this will help immensely. I've spent a lot of hours going through the code to clean it up and make it easier to read for myself. I've gotten rid of most of the global vars (by adding them to the VObject which I think is where they really belong) and fixed the reverse steering issue. Once I'm done I think I'll look at modifications etc. (this is a learning process for me as math has never been my strong point)
I was reading one of the links posted here on car physics and I might try changing the DELTA_TIME value to see if that stops the wild out of control values that can happen in certain collisions.
In any event, just wanted to thank you all for your contributions.