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 withSimulink 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 usingvrnode
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 useSimulink 3D Animation函数来读取传感器字段值为装病者ion models and control simulation based on the user interaction with the virtual scene. You can write an S-function or aMATLAB Functionblock that reads the sensor output.
Functions
Blocks
VR Source | Read data from virtual world to Simulink model |