| Aerospace Toolbox | ![]() |
Change virtual reality animation node position and orientation as function of time
updateNodes(h,t)
h.updateNotes(t)
updateNodes(h,t) and h.updateNotes(t) change node position and orientation of body 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. |
Update the node h with time in 5 seconds.
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}.CoordTransformFcn = @vranimCustomTransform;
h.updateNodes(5);![]() | updateCamera (Aero.Animation) | Viewpoint (Aero.Viewpoint) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |