Metadata-Version: 2.4
Name: ovphysx
Version: 0.5.10
Summary: Self-contained Python library for USD-based physics simulation with DLPack tensor interoperability. x86_64 wheels require a CPU with AVX.
Author: Omniverse Physics Team
License-Expression: LicenseRef-NVIDIA-Omniverse
Project-URL: Homepage, https://github.com/NVIDIA-Omniverse/PhysX/
Project-URL: Documentation, https://nvidia-omniverse.github.io/PhysX/ovphysx/latest/index.html
Project-URL: Repository, https://github.com/NVIDIA-Omniverse/PhysX
Project-URL: Issues, https://github.com/NVIDIA-Omniverse/PhysX/issues
Project-URL: Changelog, https://nvidia-omniverse.github.io/PhysX/ovphysx/latest/changelog.html
Keywords: physics,simulation,usd,openusd,nvidia,physx,reinforcement-learning,robotics,dlpack,tensor
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Intended Audience :: Science/Research
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt
License-File: ovphysx-LICENSES.zip
Requires-Dist: packaging<24,>=20
Requires-Dist: ovstage==0.1.1.355824
Dynamic: license-file

# ovphysx

ovphysx is a self-contained Python library for ovstage/USD-based physics simulation
with DLPack tensor interoperability. It wraps NVIDIA PhysX and provides:

- ovstage attachment plus rigid-body / articulation simulation
- Same-device zero-copy tensor exchange with transparent CPU/CUDA staging for NumPy, PyTorch, and other DLPack frameworks
- Environment cloning for batched reinforcement-learning workloads

## Quick start

```bash
pip install ovphysx
```

```python
import ovstage
from ovphysx import PhysX

stage = ovstage.Stage("scene")
ovstage.population.open_usd(
    stage, "scene.usda", ordinal=1, domains=ovstage.PopulationDomain.PHYSICS
)

physx = PhysX()
physx.attach_ovstage(stage, read_ordinal=1)
physx.step(1.0 / 60.0)
physx.detach_ovstage()
physx.release()
stage.destroy()
```

For full documentation and tutorials, see `ovphysx/docs/` inside the
installed package, or the [ovphysx repository](https://github.com/NVIDIA-Omniverse/PhysX).
