Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

updateNodes (Aero.VirtualRealityAnimation)

Change virtual reality animation node position and orientation as function of time

Syntax

updateNodes(h,t)
h.updateNotes(t)

Description

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.

Examples

Update the node h with time in 5 seconds.

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}.CoordTransformFcn = @vranimCustomTransform;
h.updateNodes(5);

See Also

|

Introduced in R2007b

Was this topic helpful?