| Virtual Reality Toolbox | ![]() |
Creating a vrworld Object
To connect MATLAB to a virtual world, you need to create a vrworld object. A virtual world is defined by a VRML file with the extension .wrl. For a complete list of virtual world objects, see vrworld Object Reference, vrnode Object Reference, and vrfigure Object Reference.
After you create a virtual world, you can create a vrworld object. This procedure uses the virtual world vrmount.wrl as an example:
The vrworld object myworld is associated with the virtual world vrmount.wrl. You can think of the variable myworld as a handle to the vrworld object stored in the MATLAB workspace.
Your next step is to open a virtual world using the vrworld object. See Opening a Virtual World.
| Creating Virtual Reality Toolbox Objects | Using the MATLAB Interface | ![]() |