| Aerospace Toolbox | ![]() |
updateCamera(h,time)
h.updateCamera(time)
updateCamera(h,time) and h.updateCamera(time) update the camera in the animation object h. time is a scalar in seconds.
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. Therefore, it takes a few steps for the camera to position itself correctly in the chase plane position. |
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);![]() | updateBodies (Aero.Animation) | updateNodes (Aero.VirtualRealityAnimation) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |