8. Tutorials

8.1. C++

All source code (C++) tutorials can be found in the tutorial subdirectory. The tutorials are usually associated to a namespace and are to be found in the various subdirectories agx, agxCollide, agxOSG, agxSDK,…

A new tutorial is added by creating a source code file named tutorial_X.cpp/(tutorial_X.h) which will automatically be picked up by the build system and added to the target build.

Common to all tutorials in the agxOSG directory is the ExampleApplication class which encapsulates functionality for capturing keyboard events, creating example scenes etc.

These tutorials are all built around different “scenes”. The current scene can be selected at run-time with keyboard presses (0…9, F1-F10) or via a command-line argument: –scene [1…]

8.2. Python

Many examples and tutorials are available also as Python code. This is a good way of learning how to use the AGX Dynamics API as it allows for quick changes/reloads without needing to compile/link C++ code.