object rotation according to a face normal
I want to make a script to lay down a collection of object on a noisy floor
I partially do this by definig a ray and position my object at the intersection. This part works well. My problem is rotation of my object.
I would like to find a way to rotate my object accordingly to a face normal, for my object is perfectly parellel to this face.
Does anybody have a clue ?