Dynamics Extension Tutorial
Name | Location |
---|---|
ExDynamicsExtension | <Vortex Studio Installation Folder>\tutorials\ExDynamicsExtensionPlugin |
This tutorial showcases the following:
- Implementation of an
VxSim::IExtension
implementing the following interfacesVxDynamics::ICollidable
VxSim::IDynamics
- Implementing VxProfiler method for custom profiling.
The extension spawns new part regularly, the number of frames between part creation is given by mParameterCreationPeriod.
It creates a collision group for all the parts created.
Profiling data is captured during the simulation.
See Vortex Studio SDK - Customizing Vortex for information about making plugins and creating extensions.
See C++ Tutorial 1: Plugins for a detailed example of making a plugin.
See Vortex Studio SDK Advanced - Extension Categories and Filtering Options for more information about the profiling section.
Using the tutorial
- Open Tutorials solution
- Compile the ExDynamicsExtensionPlugin project.
- Deploy the plugin
- The code is fully documented for extra information.
Checking the collider
- Launch the Vortex Editor.
- Create an assembly
- Open the assembly and insert two new empty parts.
- Open the first part and insert a plane collision geometry.
- Open the second part and insert a box collision geometry.
- Set the plane part's input control to static.
- Set the box's coordinates to be above the plane.
- Save the assembly.
- Create a mechanism
- Insert the assembly created in step 2.
- Insert the ExDynamicsExtension.
- Insert a Collision Rule Container.
- Add a rule between the ExDynamicsExtension and the assembly. Check Collide.
- Save the mechanism.
- Start the simulation.
Using the profiler
- Launch the Vortex Player
- Load the saved mechanism in the Vortex Player.
- Start the simulation.
- Go to the Profiler tab.
- You can see the different profiling sections (including yours) update in real time.
- Press "Start Capture" to save the profiling data to a CSV file.
- You can "Enable Filtering" and only select your categories in the "Filtering Settings".