updateBodies - Class: Aero.Animation
Package: Aero
Update bodies of animation object
Syntax
h = updateBodies(time)
h.updateBodies(time)
Description
h = updateBodies(time) and h.updateBodies(time) set
the new position and attitude of movable bodies in the animation object h.
This function updates the bodies contained in the animation object
h. time is a scalar in seconds.
Examples
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);
 | update (Aero.Node) | | updateCamera (Aero.Animation) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit