Simulate a Cube#

Author a cube and simulate it falling onto a ground plane.

Metadata#

  • Stable ID: falling_cube_ovsim.simulate_cube.

  • Example type: Sequence step.

  • Entry point: main.py.

  • Source directory: source/examples/series/falling_cube_ovsim/simulate_cube.

  • Languages: Python.

  • APIs: isaacsim.ovsim.api, isaacsim.physics_engines.ovphysx.

  • Topics: physics, USD.

  • Required distributions: isaacsim_ovsim, isaacsim_physics_engines.

  • Series: Falling Cube (OV SIM API) (Sequence).

  • Level: beginner.

  • Series position: 2.

  • Required system capabilities: python.

Run the example#

Linux:

source/examples/example.sh run falling_cube_ovsim.simulate_cube

Windows (PowerShell):

.\source\examples\example.bat run falling_cube_ovsim.simulate_cube

See Build and run examples for setup and runner options.

About this example#

main.py creates a stage, authors a cube at /World/Cube, applies collision and rigid-body behavior, then simulates the falling cube with OvPhysX.

More in this sequence#

Previous: Author a Cube. Next: Simulate a Cube over gRPC.