Example: If you send a trace toward the ground and the ground is flat (parallel with x and y axes) The normal from the trace would be the vector (0,0,1)... You can use the vec_to_angle command to compute the tilt and pan angles from the normal vector. This is my understanding... Please correct me if this is wrong.

Jason