When placing an object on the ground somewhere, I am trying to get it to face the direction of the object that drops it and to align it’s y-axis with the terrain’s normal at that point (so it lays flat). Currently, I am using two lines of code to do this. The first is:
transform.LookAt(dropping object's facing*speed);
The second is:
transform.rotation = Quaternion.FromToRotation (Vector3.up, terrainNormal);
Is there a way to do it in one step? I don’t really understand Quaternions except that they work wonders with multiple rotations.