Demonstration scenes using AGX Dynamics SDK
The simulations start in paused mode Continue simulation with the 'e' button
High fidelity chain model
This demonstrates how a high fidelity chain model can be modelled using AGX.
- Start lumpedChainScene.agxLua in agxViewer
- View source: lumpedChainScene.agxLua (main Lua file)
- View source: LumpedElements/LumpedChain.agxLua
"peg-in-a-hole" demonstration
This show how an implementation of a stable peg in a hole scenario can be implemented. By using a constraint and collision sensors, a plausable simulation of this can be achieved.
- Start pegInAHole.agxLua in agxViewer
- View source: pegInAHole.agxLua
Ship, Oil rig and Anchor demonstration
This scene demonstrates how AGX can be used to build a offshore simulation scenario with a ship, oil rig, anchor and wires.
Key bindings:
| 'a' | while holding, wire is going in/on to the ship's drum. |
| 'A' | like 'a' but you don't have to hold it down. To stop the drum, press 'a'. |
| 'z' | while holding, wire is going out from the ship's drum. |
| 'Z' | like 'z' but you don't have to hold it down. To stop the drum, press 'z'. |
| F1,F2,F3,F4 | mark/toggle active guide/towing pin |
| up/down | active guide/towing pins goes up or down. |
| Rig | |
| 's' | while holding, chain is going in to the rig's winch. |
| 'S' | like 's' but you don't have to hold it down. To stop the winch, press 's'. |
| 'x' | while holding, chain is going out from the rig's winch. |
| 'X' | like 'x' but you don't have to hold it down. To stop the winch, press 'x'. |
Buoyancy
This scene demonstrates the buoyancy functionality in AGX. Triangle meshes and spheres floating with drag and viscous damping.
Snakebot
Demonstrates a "snakebot", a robot in water which use twiggling
motions as propulsion. It can be controlled with arrow keys on the
keyboard.
Hydrodynamics for wires
This scene illustrates hydrodynamic effects on wires.
Hydrodynamics crane
This scene show a crane floating in water. Both the crane as well
as the wire is affected by hydrodynamic forces: lift, drag and
buyoancy.
Submarine
Using buoyancy, lift & drag this "submarine" can be navigated
in the water. The submarine is being pulled by a wire attached to
a motorized hinge.
Ships
Two ships floating in water connected with wires
Industrial Robot
Demonstration of an interactive robot with attached cabes that can be controlled using the keyboard.
This simulation should by no means be considered a promotion of any specific robot company or product.
Simple excavator
Demonstrates a simple excavator model built from primitives (boxes). Surface velocity is used for the forward/backward movement. Keyboard bindings:
- a/z - Left track forward/backward
- s/x - Right track forward/backward
- left/right - Rotate turrent left/right
- Page up/down - move first hinge up/down
- Page up/down - Lift first joint up/down
- Home/end - Lift second joint up/down
- Insert/delete - Tilt bucket up/down
- Start excavator.agxLua in agxViewer
- View source: excavator.agxLua (main Lua file)
Trimesh reader/collider
Demonstrates th Wavefront obj reader and how to use a triangle mesh as a collider primitive.
- Start mesh-spiral.agxLua in agxViewer
- View source: mesh-spiral.agxLua (main Lua file)
Tracing surface of triangle mesh
Demonstrates how spheres are tracing/rotating against the profile of a triangle mesh.
- Start follow-surface.agxLua in agxViewer
- View source: follow-surface.agxLua (main Lua file)
Building a "crane" with Wires
This script creates a flexible crane with a wire. The flex in the two beams in the crane can be altered with the UP/DOWN/LEFT/RIGHT keys.
Shows how to:
- Create agxWire::Wire
- Render wires
- Route wire with nodes
- Work with WireWinchControllers to winch in/out wire.
Modelling Torsional spring with agxCable
This script creates a torsional spring using the agxCable API. By routing a agxCable::Cable in a spiral, then calling Cable::rebind() will reconfigure the cable so that the current state is the rest state.
Pressing up/down key will lift/push down the weight. Releasing the button will release the weight
Modelling a road roller
This script demonstrate how to modell a road roller running over a deformable terrain.
Demonstration of a "jump request"
Sometimes it is necessary to move a part of a simulation to a different place.
It is important to keep the relative transformation and velocities intact.
This script demonstrates how to move bodies and a wire while retaining a stable simulation.
















