Dynamics Extension Tutorial

ExDynamicsExtension<Vortex Studio Installation Folder>\tutorials\ExDynamicsExtensionPlugin

This tutorial showcases the following:

  1. Implementation of an VxSim::IExtension implementing the following interfaces
    1. VxDynamics::ICollidable
    2. VxSim::IDynamics
  2. 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

  1. Open Tutorials solution
  2. Compile the ExDynamicsExtensionPlugin project.
  3. Deploy the plugin
  4. The code is fully documented for extra information.

Checking the collider

  1. Launch the Vortex Editor.
  2. Create an assembly
    1. Open the assembly and insert two new empty parts.
    2. Open the first part and insert a plane collision geometry.
    3. Open the second part and insert a box collision geometry.
    4. Set the plane part's input control to static.
    5. Set the box's coordinates to be above the plane.
    6. Save the assembly.
  3. Create a mechanism
  4. Insert the assembly created in step 2.
  5. Insert the ExDynamicsExtension.
  6. Insert a Collision Rule Container.
  7. Add a rule between the ExDynamicsExtension and the assembly. Check Collide.
  8. Save the mechanism.
  9. Start the simulation.

Using the profiler

  1. Launch the Vortex Player
  2. Load the saved mechanism in the Vortex Player.
  3. Start the simulation.
  4. Go to the Profiler tab.
  5. You can see the different profiling sections (including yours) update in real time.
  6. Press "Start Capture" to save the profiling data to a CSV file.
  7. You can "Enable Filtering" and only select your categories in the "Filtering Settings".