I am trying to get an axis of a cube to align itself to the normals of an object. Sounds simple enough right?
How do I get the returned normal that is hit by a raycast to be applied to the rotation of the cube so that alignment occurs?
I found these things which didn't help.
The unity scripting manual... Which gives a vague description.
The normal of the surface the ray hit.