Main Content

updateNodes

(To be removed) Change virtual reality animation node position and orientation as function of time

updateNodes will be removed in a future release.

Description

updateNodes(h,t) changes 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.

example

Examples

collapse all

This example shows how to update node h with time in 5 seconds.

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

Input Arguments

collapse all

Virtual reality animation object, specified as an Aero.VirtualRealityAnimation object.

Time at which virtual reality animation object is updated, specified as a scalar.

Data Types: single | double

Version History

Introduced in R2007b

expand all

See Also

|