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
- From the <Vortex Studio Installation Folder>\tutorials\plugins folder, copy the built ExCollisionDetector.vxp into the Vortex Studio plugins folder (<Vortex Studio Installation Folder>\plugins).
- Start the Vortex Editor
- find the extensions in the tool box with the name defined by the factory key below
- set a collision geometry to each of the field "Collision Geometry" in the trigger and the sensor
- to see the result as printed out from CollisionSensor::post_step, open the log file of the Vortex Editor that can be found under the directory %tmp%