Link to Models
Visualize a dynamic system simulation by connecting a Simulink block diagram or Simscape Multibody Link to a virtual world. Simulating the model generates signal data for a dynamic system, which you can use to control and animate the virtual world.
Use the Simulink 3D Animation™ block library to connect to a Simulink model to a virtual world. The VR Sink block allows you to write values from Simulink block ports to specified virtual world fields. To provide interactivity between a virtual world viewer and a Simulink model, use a VR Source block or other blocks such as a Space Mouse Input block.
To view the behavior of a model created with the Simscape Multibody Link software:
Build a model of a machine in the Simulink interface using Simscape Multibody Link blocks.
Create a detailed visual representation of your machine in a virtual world.
Connect the virtual world to the Simscape Multibody Link body sensor outputs.
View the behavior of the bodies in a virtual world viewer.
Functions
vrlib | (To be removed) Open Simulink block library for Simulink 3D Animation |
vrjoystick | (To be removed) Create joystick object |
vrspacemouse | (To be removed) Create space mouse object |
vrcoordm2vr | (To be removed) Convert MATLAB coordinates to VR coordinates (Since R2019a) |
vrcoordvr2m | (To be removed) Convert VR coordinates to MATLAB coordinates (Since R2019a) |
vrrotmat2vec | (To be removed) Convert rotation from matrix to axis-angle representation |
vrrotvec2mat | (To be removed) Convert rotation from axis-angle to matrix representation |
Blocks
VR Sink | (To be removed) Write data from Simulink model to virtual world |
VR Source | (To be removed) Read data from virtual world to Simulink model |
VR To Video | (To be removed) Write data from Simulink model to virtual world (video output port enabled) |
VR Tracer | (To be removed) Trace trajectory of object in associated virtual scene |
VR Placeholder | (To be removed) Send unspecified value to Simulink 3D Animation block |
VR Signal Expander | (To be removed) Expand input vectors into fully qualified virtual world field vectors |
Joystick Input | (To be removed) Process input from asynchronous joystick device |
Space Mouse Input | (To be removed) Process input from space mouse device |
Cross Product | (To be removed) Cross product of two 3-D vectors |
Normalize Vector | (To be removed) Output unit vector parallel to input vector |
Rotation Between 2 Vectors | (To be removed) Virtual world rotation between two 3-D vectors |
Rotation Matrix to VR Rotation | (To be removed) Convert rotation matrix to axis/angle rotation (Since R2019a) |
VR Rotation to Rotation Matrix | (To be removed) Convert array/angle rotation to rotation matrix (Since R2019a) |
VR to MATLAB Coordinates | (To be removed) Convert VR coordinates to MATLAB coordinates (Since R2019a) |
MATLAB to VR Coordinates | (To be removed) Convert MATLAB coordinates to VR coordinates (Since R2019a) |
Viewpoint Direction to VRML Orientation | (To be removed) Convert viewpoint direction to virtual world orientation |