Main Content

updateBodies

Class: Aero.Animation
Namespace: Aero

Update bodies of animation object

Syntax

updateBodies(h,time)

Description

updateBodies(h,time) sets the new position and attitude of movable bodies in the animation object h. This function updates the bodies contained in the animation object h.

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 TimeSeriesSource set to simdata, then update the body 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;
updateBodies(h,t);

Version History

Introduced in R2007a