Interact with Virtual Reality Worlds
You can use MATLAB functions and classes to interact with virtual reality worlds. Create a
virtual world object (vrobject
) and node objects
(vrnode
) to represent a virtual world that you create with
Simulink
3D Animation™. Change and control the degrees of freedom for the virtual world from
within the MATLAB environment by setting values for the available virtual world nodes and
their fields using vrnode
object methods.
Virtual reality scenes can contain sensors, which are nodes that generate events and output values depending on time, navigation, and actions and distance changes in the scene. These nodes add interactivity to the virtual world. You can use Simulink 3D Animation functions to read sensor field values into simulation models and control simulation based on the user interaction with the virtual scene. You can write an S-function or a MATLAB Function block that reads the sensor output.
Functions
Blocks
VR Source | (To be removed) Read data from virtual world to Simulink model |