I want to know how to align objects to the orientation of another object’s face’s normal. I’ve been trying to use the “alignToVector” But I get weird results and it lines up to world orientation of the normal. Or at least I think that’s what happens.
Sometimes I get the correct results, but only when I align to the normal in a certain direction.
I’m still working on a good ledge hang, how do I get my character to align to the edges?
That’s exactly what I was doing… But I don’t understand, why do you align it to the negative hit normal? I thought a normal was just a perpendicular vector of a face. Aligning to the vector by itself should have worked in my mind, so I never tried using the negative hit normal. Obviously it works now, but I’m still confused. Thanks Andrew, very much appreciated!
The normal of the plane points outwards from the plane. If you align your y+ axis (the axis your player faces) to the normal, then your player faces away from the plane. Aligning it to the negative of the normal makes you player face inwards, towards the plane.