| Aerospace Toolbox | ![]() |
addRoute(h, nodeOut, eventOut, nodeIn, eventIn)
h.addNode(nodeOut,
eventOut, nodeIn, eventIn)
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).
Add a ROUTE command to connect the Plane position to the Camera1 node.
h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = [matlabroot,'/toolbox/aero/astdemos/vrtkoff.wrl'];
copyfile(h.VRWorldFilename,[tempdir,'vrtkoff.wrl'],'f');
h.VRWorldFilename = [tempdir,'vrtkoff.wrl'];
h.initialize();
h.addNode('Lynx',[matlabroot,'/toolbox/aero/astdemos/chaseHelicopter.wrl']);
h.addRoute('Plane','translation','Camera1','translation');![]() | addNode (Aero.VirtualRealityAnimation) | addViewpoint (Aero.VirtualRealityAnimation) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |