How to get from surface normal to world rotation?

Hi everyone,

I am getting a hit data, including hit normal. I would like to spawn a decal which will be rotated accordingly. How do I transform hit normal vec3 to proper world space rotation?

I also would like to know the answer. I want to spawn emitter at hit’s location and rotatation.

Not sure if this answers your question exactly but take a look at this page:

They use “RotationFromXVector” which might get you what you need.

that link doesn’t seem right

would be more logic if it was from Z vector, tried but does not work

RotationFromXVector does work, but depending on the object you’re trying to rotate, you may need to add/subtract some degrees (like Y+90) for it to be correct. At least that did fix my issues.