This example is a variation of the Car in the Mountains example, with the coordinates for translation
specified in MATLAB coordinate system.
Create a vrworld object representing the virtual world and open
it.
world = vrworld('vrmount');
open(world);
view(world);
Identify the nodes in the virtual world using the nodes
command
nodes(world)
View1 (Viewpoint) [VR Car in the Mountains]
Camera_car (Transform) [VR Car in the Mountains]
VPfollow (Viewpoint) [VR Car in the Mountains]
Automobile (Transform) [VR Car in the Mountains]
Wheel (Shape) [VR Car in the Mountains]
Tree1 (Group) [VR Car in the Mountains]
Wood (Group) [VR Car in the Mountains]
Canal (Shape) [VR Car in the Mountains]
ElevApp (Appearance) [VR Car in the Mountains]
River (Shape) [VR Car in the Mountains]
Bridge (Shape) [VR Car in the Mountains]
Road (Shape) [VR Car in the Mountains]
Tunnel (Transform) [VR Car in the Mountains]
Access the Automobilevrnode object by assigning it to a handle
car = world.Automobile
car =
vrnode object: 1-by-1
Automobile (Transform) [VR Car in the Mountains]
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.