sun_pos
The sun position. This vector can't be
set, but is calculated automatically from the sun azimuth, elevation,
and distance.
Type:
VECTOR, read-only
Example (lite-C):
action look_into_the_sun()
{
while(1)
{
VECTOR dir;
vec_diff(dir,sun_pos,my.x);
vec_to_angle(my.pan,dir);
wait(1);
}
}
See also:
sun_angle, sun_light
► latest
version online