update (Aero.Node) - Change node position and orientation versus time data
Syntax
update(h,t)
h.update(t)
Description
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. |
Examples
Move the Lynx body.
h = Aero.VirtualRealityAnimation;
h.FramesPerSecond = 10;
h.TimeScaling = 5;
h.VRWorldFilename = [matlabroot,'/toolbox/aero/astdemos/asttkoff.wrl'];
copyfile(h.VRWorldFilename,[tempdir,'asttkoff.wrl'],'f');
h.VRWorldFilename = [tempdir,'asttkoff.wrl'];
h.initialize();
load takeoffData
h.Nodes{7}.TimeseriesSource = takeoffData;
h.Nodes{7}.TimeseriesSourceType = 'StructureWithTime';
h.Nodes{7}.update(5);See Also
updateNodes
 | update (Aero.FlightGearAnimation) | | updateBodies (Aero.Animation) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit