TrackingCam class in Command line interface

Camera object with the automatic target tracking ability.

13 members:

integer cam_change
integer, 0 .. 5
  • 0 = Off
  • 1 = Cut
  • 2 = Move
  • 3 = Look+Move (default)
  • 4 = Zoom+Move
  • 5 = Zoom+Cut
  • Target change

    float cam_chspeed
    float, 0.1 .. 10
    default=1

    Change speed

    float cam_dir
    float, 0 .. 360
    default=30

    Direction

    integer cam_distrac
    integer, 0 .. 1 (false/true)
    default=0

    Allow manual tracking

    Suspend automatic tracking when the camera is moved manually

    float cam_h
    float, 0 .. 360
    default=45

    Height

    0=side view, 90=top view

    integer cam_restrac
    integer, 0 .. 100
    default=10

    Time to restore

    Restore automatic tracking after some period of time
    (0 to never restore automatic tracking)

    integer cam_tracking
    integer, 0 .. 3
  • 0 = Off
  • 1 = Position only (default)
  • 2 = Chase
  • 3 = Static camera
  • Tracking mode

    float cam_trspeed
    float, 0.1 .. 10
    default=5

    Tracking speed

    float cam_zoom
    float, 0.2 .. 3
    default=0.8

    Zoom

    function cam_restore
    doesn't return a value

    Restore automatic tracking now

    function cam_restore()

    Update camera position and restore automatic tracking

    function 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

    function 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

    function setViewDir
    doesn't return a value

    setViewDir

    function setViewDir(float heading_angle, float height_angle)

    heading: 0..360, height: -90..+90


    Global context>>Experiment definition>>Command line interface