link to models -pg电子麻将胡了
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
| open simulink block library for simulink 3d animation | |
| create joystick object | |
| create space mouse object | |
| convert matlab coordinates to vr coordinates | |
| convert vr coordinates to matlab coordinates | |
| convert rotation from matrix to axis-angle representation | |
| convert rotation from axis-angle to matrix representation |
blocks
| write data from simulink model to virtual world | |
| read data from virtual world to simulink model | |
| write data from simulink model to virtual world (video output port enabled) | |
| trace trajectory of object in associated virtual scene | |
| send unspecified value to simulink 3d animation block | |
| expand input vectors into fully qualified virtual world field vectors | |
| process input from asynchronous joystick device | |
| process input from space mouse device | |
| cross product of two 3-d vectors | |
| output unit vector parallel to input vector | |
| virtual world rotation between two 3-d vectors | |
| convert rotation matrix to axis/angle rotation | |
| convert array/angle rotation to rotation matrix | |
| convert vr coordinates to matlab coordinates | |
| convert matlab coordinates to vr coordinates | |
| convert viewpoint direction to virtual world orientation |

