FANDOM



This command will set the position of the camera in 3D space.

Syntax
POSITION CAMERA X, Y, Z
POSITION CAMERA Camera Number, X, Y, Z
POSITION CAMERA Camera Number, Vector
Parameters
Camera Number

Integer
The camera number X Float
The x position in 3d Y Float
The y position in 3d Z Float
The z position in 3d

Returns

This command does not return a value.

Description

The coordinates should be real numbers.

Example Code
autocam on

make matrix 1,4000,4000,100,100

set matrix height 1,50,50,500

update matrix 1

set camera rotation xyz 0

position camera 0,0,100,-500

while mouseclick()<>1

x#=cos(a#)*500 : z#=sin(a#)*500

a#=a#+1.0 : if a#>359 then a#=a#-360

position camera 0,x#,100,z#

point camera 0,500,0,500

endwhile

while mouseclick()=1:endwhile

delete matrix 1:autocam off

end
Community content is available under CC-BY-SA unless otherwise noted.