Camera object with the automatic target tracking ability.
cam_change
integer, 0 .. 5 0 = Off1 = Cut2 = Move3 = Look+Move (default)4 = Zoom+Move5 = Zoom+Cut |
Target change
|
cam_chspeed
float, 0.1 .. 10
default=1 |
Change speed
|
cam_dir
float, 0 .. 360
default=30 |
Direction
|
cam_distrac
integer, 0 .. 1 (false/true)
default=0 |
Allow manual tracking
Suspend automatic tracking when the camera is moved manually
|
cam_h
float, 0 .. 360
default=45 |
Height
0=side view, 90=top view
|
cam_restrac
integer, 0 .. 100
default=10 |
Time to restore
Restore automatic tracking after some period of time
(0 to never restore automatic tracking)
|
cam_tracking
integer, 0 .. 3 0 = Off1 = Position only (default)2 = Chase3 = Static camera |
Tracking mode
|
cam_trspeed
float, 0.1 .. 10
default=5 |
Tracking speed
|
cam_zoom
float, 0.2 .. 3
default=0.8 |
Zoom
|
cam_restore
doesn't return a value |
Restore automatic tracking now
function cam_restore()
Update camera position and restore automatic tracking
|
moveTarget
doesn't return a value |
moveTarget
function moveTarget(float location_x, float location_y, float location_z, float target_size)
notify about the target location/size change
|
setTarget
doesn't return a value |
setTarget
function setTarget(float location_x, float location_y, float location_z, float target_size)
select a new target for the camera
|
setViewDir
doesn't return a value |
setViewDir
function setViewDir(float heading_angle, float height_angle)
heading: 0..360, height: -90..+90
|