Main Content

vrworld/open

(To be removed) Open virtual world

vrworld/open will be removed in a future release. For more information, see Version History.

Syntax

open(vrworld_object)

Arguments

vrworld_object

A vrworld object representing a virtual world.

Description

The open method opens the virtual world. When the virtual world is opened for the first time, the virtual world internal representation is created based on the associated virtual world 3D file.

If the input argument is an array of virtual world handles, all the virtual worlds associated with those handles are opened.

The virtual world must be open for you to use it. You can close the virtual world with the method close.

You can call the method open more than once, but you must use an appropriate number of close calls before the virtual world returns to a closed state.

Examples

Create two vrworld objects by typing

myworld1 = vrworld('virtual world object name')
myworld2 = vrworld('virtual world object name')

Next, create an array of virtual world handles by typing

myworlds = [myworld1 myworld2];

open(myworlds) opens both of these virtual worlds.

Version History

Introduced before R2006a

collapse all

R2023b: To be removed

The vrworld/open will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks to interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.