Determining the alignment of terrain

Hello Monkeys,

I have a four wheeled vehicle located at point P1(x,y,z) and facing point P2(x,y,z) and I want to rotate the vehicle ;ie vehicle.setPhysicsRotation(Quaternion q) so that all four wheels are on the ground.

What’s the most efficient way to find q ?

thanks
Steve

Did you look at this?
http://wiki.jmonkeyengine.org/doku.php/jme3:math_for_dummies

Thanks Normen, very useful