| Aerospace Toolbox | ![]() |
update(h,t)
h.update(t)
update(h,t) and h.update(t) change node position and orientation of node h as a function of time t. t is a scalar in seconds.
Note This function requires that you load the node and time series data first. |
Move the Lynx body.
h = Aero.VirtualRealityAnimation;
h.FramesPerSecond = 10;
h.TimeScaling = 5;
h.VRWorldFilename = [matlabroot,'/toolbox/aero/astdemos/vrtkoff.wrl'];
copyfile(h.VRWorldFilename,[tempdir,'vrtkoff.wrl'],'f');
h.VRWorldFilename = [tempdir,'vrtkoff.wrl'];
h.initialize();
load takeoffData
h.Nodes{7}.TimeseriesSource = takeoffData;
h.Nodes{7}.TimeseriesSourceType = 'StructureWithTime';
h.Nodes{7}.update(5);![]() | update (Aero.FlightGearAnimation) | updateBodies (Aero.Animation) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |