I am trying to align a game object to the ground it is on. I have raycast down and got the normal that would point in the right direction.
I believe I need to use
vmath.quat_from_to(v1,v2) to align them.
How do I get the object’s “up” vector (which goes to v1 in the equation)?
Thank you for your time and help.