ovphysx#

ovphysx is a library for simulating physics in USD scenes, with a C API and a Python package. USD, short for Universal Scene Description, is an open file format for 3D scenes. ovphysx is built on NVIDIA PhysX and simulates on an NVIDIA GPU or on the CPU. Your program loads a scene, moves time forward in steps, and reads the results as arrays.

The following animation shows boxes whose motion ovphysx simulated, drawn by an NVIDIA RTX renderer:

Six boxes, four of them green, fall onto a dark floor, tumble, and come to rest.

ovphysx is for programs that need physics as data rather than pictures, such as training robots, running virtual factories, testing machines in simulation, and adding physics to your own application. It draws nothing on screen. To see a scene, pass the results to a renderer.

To learn the basics, read Install, Your First Simulation, and Concepts in that order.

The pip command that installs ovphysx.
Install

Install the Python package or the C SDK.

Install
A box resting on the ground after its fall.
Your First Simulation

Drop a box onto the ground and print its height.

Your First Simulation
The order of a simulation, from scene to stage to steps to arrays.
Concepts

Learn the ideas behind every ovphysx program.

Concepts

Then pick the topic you need from Building Scenes, Simulation Data, and Common Tasks. Each guide is short and links to the Detailed Reference, which describes every feature in full.

A box resting on the ground, a pendulum, and a two-link articulation.
Building Scenes

Describe bodies, colliders, joints, and articulations in USD.

Loading Scenes
A path pattern selects three boxes on a shelf, and a read returns one row of x, y, and z per box.
Simulation Data

Select objects, then read and write their values.

Selecting Objects
Four tiles: a box added to a running scene, a contact force graph, a rendered picture, and a recording timeline.
Common Tasks

Change a running scene, read contacts, debug, and speed up.

Changing the Scene

Ready for AI coding assistants

The Python package and the C SDK ship these guides as Markdown, together with skills: short playbooks that each teach an assistant one task. In Python, python -m ovphysx --skills-path prints where they are installed, so you can point your assistant at them.

Note

ovphysx is prerelease software. Until version 1.0, its API can change from one release to the next.

The source code of ovphysx lives alongside the PhysX engine in the NVIDIA-Omniverse/PhysX GitHub repository. These guides describe the physics engine that ovphysx is built on: