quote:
1. I would like to have an entity always retain the pan/tilt/roll of a different entity at a distance. Example:

I want the camera to always look at an entity.

I think you may be referring to two different things here. Consider that your target entity might be spinning around graduallt. The source entity (the one looking at the target) would have a constant pan, even though the target's pan changed.

If I'm understanding you right, try:

code:
vec_set(temp, target_entity.x);
vec_sub(temp, my.x);
vec_to_angle(my.pan, temp);

Where 'target_entity' is a pointer to the looked-at entity, and 'my' is the one doing the looking.

=thomas