I have an object sitting on terrain. I have the surface normal of the terrain the object is sitting on. How do I rotate the object so it's up vector matches this surface normal.
Thanks
I think I found what I need in Spatial.rotateUpTo()
I have an object sitting on terrain. I have the surface normal of the terrain the object is sitting on. How do I rotate the object so it's up vector matches this surface normal.
Thanks
I think I found what I need in Spatial.rotateUpTo()