Main Content

updateCamera

Class: Aero.Animation
Namespace: Aero

Update camera in animation object

Syntax

updateCamera(h,time)

Description

updateCamera(h,time) updates the camera in the animation object h.

Note

The PositionFcn property of a camera object controls the camera position relative to the bodies in the animation. The default camera PositionFcn follows the path of a first-order chase vehicle. So the camera requires a few steps to position itself correctly in the chase plane position.

Input Arguments

expand all

Aerospace animation object, specified as an Aero.Animation object.

Animation time, specified as a scalar, in seconds.

Data Types: double

Examples

expand all

Configure a body with the TimeSeriesSource property set to simdata. Then, update the camera with time t equal to 0.

h = Aero.Animation;
h.FramesPerSecond = 10;
h.TimeScaling = 5;
idx1 = createBody(h,'pa24-250_orange.ac','Ac3d');
load simdata;
h.Bodies{1}.TimeSeriesSource = simdata;
t = 0;
updateCamera(h,t);

Version History

Introduced in R2007a