arc
Angle that gives the horizontal field of view. It's default value of 60
degrees corresponds to the field of view of the human eye. By decreasing this angle you'll
get a telescope effect.
Range
1..175, -1..-175 (default: 60)
Type:
var
Remarks:
- If the arc has a negative value, the view is horizontally flipped. This way rear view mirrors can be realized.
-
If the view borders are not set in ISOMETRIC views, the arc defines the width of the isometric view box in quants by the formula width = view.size_x * 2 * tan(view.arc/2). For an arc of 90 degrees, the width of the view box is equal to twice the view.size_x in pixels.
Example:
function sniper()
{
while(1)
{
if(mouse_right) // right mouse button pressed
{
camera.arc = max(camera.arc - time_step, 30); // reduce fiel of view
}
else
{
camera.arc = min(camera.arc + time_step, 90); // increase fiel of view
}
wait(1);
}
}
See also:
VIEW, aspect, view flags, left, right, up, down.
► latest
version online