sun_pos

The sun position. This vector can't be set, but is calculated automatically from the sun azimuth and elevation.

Type:

VECTOR, read-only

Example:

action look_to_the_sun
{
  while(1)
  {
    vec_set(temp, sun_pos); 
    vec_sub(temp, my.x);
    vec_to_angle(my.pan, temp);
    wait(1); 
  }
}	 

See also:

sun_angle, sun_light