Skip to content

Latest commit

 

History

History
154 lines (100 loc) · 5.64 KB

PathCamera.rst

File metadata and controls

154 lines (100 loc) · 5.64 KB

PathCamera

A camera that moves along a path. The camera can then be made to travel along this path forwards or backwards.

Inherit:

ShapeBase

Description

A camera's path is made up of knots, which define a position, rotation and speed for the camera. Traversal from one knot to another may be either linear or using a Catmull-Rom spline. If the knot is part of a spline, then it may be a normal knot or defined as a kink. Kinked knots are a hard transition on the spline rather than a smooth one. A knot may also be defined as a position only. In this case the knot is treated as a normal knot but is ignored when determining how to smoothly rotate the camera while it is travelling along the path (the algorithm moves on to the next knot in the path for determining rotation).

The datablock field for a PathCamera is a previously created PathCameraData, which acts as the interface between the script and the engine for this PathCamera object.

Example:

%newPathCamera = newPathCamera()
{
  dataBlock = LoopingCam;
  position = "0 0 300 1 0 0 0";
};

Methods