Tutorials for agxCable written in the scripting language Lua

The Lua scripting API has been deprecated. We refer to the Python scripting API.

All Lua based tutorials can be found in <agxDir>/data/luaDemos/tutorials. Most of the scripts can be started both with luaagx and agxViewer.
To run these tutorials, AGX needs to be installed on the computer. The .agxLua file suffix is associated to the application agxViewer which will be executed for the links below.

If you want to start one of the scripts manually in a command window, just write:

agxviewer tutorials\tutorial1.agxLua

agxViewer starts by default in paused mode. Remember to press 'e' to start simulation.

Press '1' to reload the scenes.

Keybindings and arguments for agxViewer

Tutorial 1: Cable

This script contains several scenes where each illustrate how to use the agxCable api.

Press key 1..7 to choose scene. Shows how to:

  • Create and route a cable.
  • Attach cable to objects.
  • Set cable properties.
  • Inspect dynamic state.
  • Control initialization.
  • Detect cable collisions.
  • Attach objects on initialized cable.
Start tutorial_cable.agxLua in agxViewer
View source code
tutorial_cable