Quote:Original post by rumblesushiThe most direct solution to this problem, IMO, is to use an existing physics engine that provides robust vehicle dynamics.
Oh, what I want to ask is, could you advise me on a better way to handle the vehicle's orientation?
Aside from that, I can't really offer any sort of conclusive answer. You can simply align the object to the surface beneath it of course, but even with interpolation it's only an approximation and will likely result in your vehicle clipping into other objects in the scene.
Another option might be to raycast downwards from each of the four wheels (assuming there are four wheels), and choose from the four planes that can be generated from the intersection points one for which the other intersection point lies below the plane, and then align and position the vehicle accordingly. But, I'm just guessing - I haven't tried anything of that sort myself, so I can't say for sure how effective it would be.
Again though, for any sort of realistic simulation, an existing physics engine might be your best bet.