Get Started with SuperDex Physics
These examples walk through SuperDex Physics' example programs, explaining the key concepts and API patterns demonstrated by each one. Each example corresponds to a runnable program in the examples/ directory.
Examples
- Basic
- Rigid Bodies —
examples/example_rigid_bodies.py - Soft Duck —
examples/example_soft_duck.py - State Capture —
examples/example_state_capture_restore.py
- Rigid Bodies —
- Contact & Constraints
- Contact Filtering —
examples/example_contact_filtering.py - Constraints —
examples/example_constraints_double_pendulum.py
- Contact Filtering —
- Articulations
- Double Pendulum on Rail —
examples/example_articulations_double_pendulum_on_rail.py - Skinned Double Pendulum —
examples/example_articulations_skinned_double_pendulum.py - Soft-Skinned Double Pendulum —
examples/example_articulations_soft_skinned_double_pendulum.py - Articulation Pose Controller —
examples/example_articulations_pose_controller.py - Inverse Kinematics —
examples/example_ik.py
- Double Pendulum on Rail —
- Shell
- T-shirt on Plane —
examples/example_tshirt_on_plane.py - Slit Annular Ring —
examples/example_slit_annular_ring.py
- T-shirt on Plane —
- Tendons & Rods
- Mass on Rod Spring —
examples/example_mass_on_rod_spring.py - Tendon Comparison —
examples/example_tendon_comparison.py
- Mass on Rod Spring —
- Advanced
- Soft Duck with Visual Mesh —
examples/example_soft_duck_visual_mesh.py - Damping Parameter Sweep —
examples/example_damping_sweep.py - Cross-Thread Capture/Restore —
examples/example_cross_thread_capture_restore.py
- Soft Duck with Visual Mesh —
Running Examples
Examples can be run with uv:
cd <path_to_superdex_physics>
uv run --no-project examples/example_rigid_bodies.py
Most examples automatically launch the SuperDex Physics Debugger for inspecting and controlling the simulated scene. See Inspecting Scenes for navigation and playback controls.