Collision Detector Tutorial
Name | Location |
---|---|
ExCollisionDetector | <Vortex Studio Installation Folder>\tutorials\ExCollisionDetector |
This tutorial shows how to create extensions that can be used later in a scene or a mechanism to monitor contacts between an intersection sensor (the object that scans the environment) and a sensor trigger (the object that is scanned)
Contacting info can be seen in the post_step of the sensor.
See Vortex Studio SDK - Customizing Vortex for information about making plugins.
See C++ Tutorial 1: Plugins for a detailed example of making a plugin.
Using the tutorial
- Compile the project
- Deploy the plugin
- Start the Vortex Editor
- Create or Import a Scene
- Inside the Toolbox section, select the "Tutorials" Tab to then select the extensions "Intersection Sensor" and "Sensor Trigger Extension"
- Create or import 2 Mechanisms, that both contain a Collision Geometry, onto the Scene
(Refer to this link for any further information: Collision Geometries) - Set a collision geometry to each of the field "Collision Geometry" in the trigger and the sensor
(The order has no importance in this context/tutorial) - To observe the result:
- Run the simulation
- In the Explorer, select the extension "Intersection Sensor Extension"
- Make the 2 collision geometry enter in contact
(Alt + Cursor to control the object can be a useful tool to use in this situation) - Once the 2 enter in contact, observe the "Output Collides" parameter
(A check mark is supposed to appear once this condition is true)