User`s guide

Build and Connect a Virtual World
5-9
1 to 0.4, and the y and z dimensions are expanded so that the volume of the deformed
sphere-ellipsoid remains constant. Additional blocks in the model supply the correctly
sized vectors to the Simulink 3D Animation block. The simulation stops when the sphere
is deformed to 0.4 times its original size in the x direction.
Your first task is to open a Simulink model and add a Simulink 3D Animation block to
your model.
Add a Simulink 3D Animation Block
This procedure uses the Simulink model vrtut3 to show how to add a Simulink 3D
Animation block to your model. The model generates the values for the position of B1,
the position of B2, and the dimensions of S (as described in “Define the Problem” on page
5-7).
1
Open the Tutorial #3. example.
a
At the top of the page that opens, select Open this Example.
b
Save thevrtut3 file to your MATLAB working folder.
2
In MATLAB, change the current folder to your MATLAB working folder.
3
In the MATLAB Command Window, type
vrtut3
A Simulink window opens with a model that contains Simulink 3D Animation
VR Signal Expander blocks, but no VR Sink block to write data from the model
to Simulink 3D Animation. Instead, this model uses Scope blocks to temporarily
monitor the relevant signals.