Products & Services Solutions Academia Support User Community Company

Learn more about Aerospace Toolbox   

updateCamera - Class: Aero.Animation
Package: Aero

Update camera in animation object

Syntax

updateCamera(h,time)
h.updateCamera(time)

Description

updateCamera(h,time) and h.updateCamera(time) update the camera in the animation object h. time is a scalar in seconds.

Inputs

hAnimation object.
timeScalar in seconds.

Examples

Configure a body with TimeSeriesSource set to simdata, then update the camera 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.updateCamera(t);
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS