TrackingCam class, available in: Framsticks TheaterCamera object with the automatic target tracking ability.This class has 17 members:
sdleiF
int cam_change0 .. 5
  • 0 = Off
  • 1 = Cut
  • 2 = Move (default)
  • 3 = Look+Move
  • 4 = Zoom+Move
  • 5 = Zoom+Cut
  • Target change
    float cam_chspeed0.1 .. 10
    default=1.0
    Change speed
    float cam_dir0 .. -1
    default=30.0
    Direction
    int cam_distrac0 .. 1 (false/true)
    default=0
    Allow manual trackingSuspend automatic tracking when the camera is moved manually
    float cam_h-90 .. 90
    default=45.0
    Height0=side view, 90=top view
    int cam_restrac0 .. 100
    default=10
    Time to restoreRestore automatic tracking after some period of time
    (0 to never restore automatic tracking)
    int cam_tracking0 .. 3
  • 0 = Off
  • 1 = Position only (default)
  • 2 = Chase
  • 3 = Static camera
  • Tracking mode
    float cam_trspeed0.1 .. 10
    default=5.0
    Tracking speed
    int cam_world0 .. 1 (false/true)
    default=1
    Target world when no selection
    float cam_zoom0.2 .. 3
    default=0.8
    Zoom
    int interacting RO0 .. 2
  • 0 = No
  • 1 = Rotating
  • 2 = Moving
  • user is interacting
    snoitcnuF
    function cam_restore()doesn't return a valueRestore automatic tracking nowUpdate camera position and restore automatic tracking
    function moveTarget(float location_x, float location_y, float location_z, float target_size)doesn't return a valuemoveTargetnotify about the target location/size change
    function setOrient(Orient)doesn't return a valuesetOrient
    function setTarget(float location_x, float location_y, float location_z, float target_size)doesn't return a valuesetTargetselect a new target for the camera
    function setViewDir(float heading_angle, float height_angle)doesn't return a valuesetViewDirheading: 0..360, height: -90..+90
    function tick(float time_span)doesn't return a valueexecute a time stepDisplay-less command line scripts can use tick() to advance time between frames
    Global context>>Experiment definition>>Command line interface>>Framsticks Theater