%% Update Aero.Animation Body
% This example shows how to 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 = h.createBody('pa24-250_orange.ac','Ac3d');
load simdata;
h.Bodies{1}.TimeSeriesSource = simdata;
t = 0;
h.updateBodies(t);

% Copyright 2012 The MathWorks, Inc.