Products & Services Solutions Academia Support User Community Company

Learn more about Aerospace Toolbox   

addRoute (Aero.VirtualRealityAnimation) - Add VRML ROUTE statement to virtual reality animation

Syntax

addRoute(h, nodeOut, eventOut, nodeIn, eventIn)
h.addNode(nodeOut, eventOut, nodeIn, eventIn)

Description

addRoute(h, nodeOut, eventOut, nodeIn, eventIn) and h.addNode(nodeOut, eventOut, nodeIn, eventIn) add a VRML ROUTE statement to the virtual reality animation, where nodeOut is the node from which information is routed, eventOut is the event (property), nodeIn is the node to which information is routed, and eventIn is the receiving event (property).

Examples

Add a ROUTE command to connect the Plane position to the Camera1 node.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = [matlabroot,'/toolbox/aero/astdemos/asttkoff.wrl'];
copyfile(h.VRWorldFilename,[tempdir,'asttkoff.wrl'],'f');
h.VRWorldFilename = [tempdir,'asttkoff.wrl'];
h.initialize();
h.addNode('Lynx',[matlabroot,'/toolbox/aero/astdemos/chaseHelicopter.wrl']);
h.addRoute('Plane','translation','Camera1','translation');

See Also

addViewpoint

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS