I was working on another version and a new video while you posted.

I ended up not using a second sphere and just using the original planet tracing from out to the planet core.

This is the surrent code:
Code:
VECTOR start_trace;
VECTOR Temp_Vec;

//get the start coordinates for the trace
vec_set(start_trace,Vehicle.x);
vec_sub(start_trace,Planet.x);
vec_normalize(start_trace,vec_length(start_trace)*2);
vec_add(start_trace,Planet.x);

//perform the trace ignoring the vehicle
me=Vehicle;
c_trace(start_trace, Planet.x,IGNORE_ME);

//do angle calculations in a temporary vector
vec_set(Temp_Vec, hit.nx);                     //set to same as captured normal
   vec_rotate(Temp_Vec, vector(90,90,0));         //rotate vector to pan/tilt/roll orientation (needs tinkering)
   vec_to_angle(Temp_Vec, Temp_Vec);           //convert from direction-vector to angle
   ang_add(Temp_Vec, vector(desired_pan,0,0));   //rotate to desired pan

//place results into the vehicle
vec_set(vehicle.pan,Temp_Vec);




And these are the results:
http://www.youtube.com/watch?v=tqJ8LLydSj4

Working on a version that will show pan/tilt/roll on screen to try to understand what is happening...

Last edited by Carlos3DGS; 01/13/12 15:51.

"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1