Debugging the simulation content
It is possible to configure your Vortex-Unity application with the capabilities of the Vortex® Studio Player that lets you monitor and visualize the Vortex simulation so that you can troubleshoot and diagnose problems in the dynamics content.
Setting up Vortex setup file for debugging
Before you can debug your simulation, you must load the VortexIntegration_DynamicsDebug.vxc
configuration file. This can be done by:
Copying the setup file into your Unity project’s StreamingAssets folder. The setup file can be found in your Vortex Studio install folder, under resources/config.
Opening the Vortex tab in the Unity Editor and selecting Settings. From there modify the Play Mode Setup Document for the new setup file.
Debugging Dynamics
For more details on integrating Vortex Studio with Unity, see Integrating Vortex Studio with full Unity workflow - com.cm-labs.vortex.integration.unity
Loading Content for debugging
When the Vortex simulation is started, the Player containing the Dynamics Visualizer Page
tab and the debug graphics will appear in separate windows. The debug graphics window will show the graphics of the selected simulation content.
Note that if after the simulation is started and the debug graphics window still does not show the debug displays (e.g. geometries, contacts etc.) it means the simulation content needs to be loaded. Use the Browser
tab in the Player window to browser and load the content.
Use the Add Assets
buttons to add content files. Any files that you add are displayed in the Browser
list. To load the content, double-click on the file (or use Load
button ) you want to see in the graphics window.
Setting Dynamics Displays
In the Dynamics Visualizer Page
tab, click to check the checkboxes to enable the debug displays.
The contact materials can be shown by enabling Display Contact Material Names
in the Streamed Terrain extension via the Content Debugger tab.
Using Shortcut keys
The collision geometries can be displayed by pressing Shift+G
to see the geometry of the terrain which is being streamed from Unity into Vortex.
The contacts can be shown by pressing Shift+C
. The contact visualization mode can be toggled with Alt+C
. The contact legend visibility can be toggled with Alt+L
.
Everything can be displayed in wireframe by pressing F2
.
The 3D display must be focused when use shortcut keys.
See The Dynamics Visualizer Tab for more details on the various debug settings/keyboard shortcuts.
Â
Â