How can i rotate an object using a normal vector obtained from a surface normal?

I just ran into this working on some raytrace functionality myself. Turned out to be fairly simple. Once you break the raytrace result, take the “impact normal” or “normal” output and convert it into a rot with a “rotation from xvector” node. Plug that into whatever you need to rotate (that takes a rot value) and you should be set! Worked for me placing some decal stuff.

3 Likes