Main Content

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

collapse all

Change the node position as a function of time.

h = Aero.VirtualRealityAnimation;
h.FramesPerSecond = 10;
h.TimeScaling = 5;
h.VRWorldFilename = 'asttkoff.wrl';
h.initialize();

Figure VR Plane Take-Off contains objects of type hgjavacomponent, uimenu, uipanel, uitoolbar.

load takeoffData
h.Nodes{7}.TimeSeriesSource = takeoffData;
h.Nodes{7}.TimeSeriesSourceType = 'StructureWithTime';
h.Nodes{7}.update(5);

Version History

Introduced in R2007b

See Also