ovspatialquery#

ovspatialquery is a C library with a Python package for spatial queries: raycasts, sphere and box sweeps, overlaps, and bounding-box pairs over geometry a simulation publishes. It runs on the CPU with no GPU required, and on CUDA devices when you ask for it. Geometry comes from an ovstage stage or from arrays you supply. It performs no dynamics simulation.

Several engines, sensors, and tools can query the same published geometry through it, so none of them has to keep its own scene-query structure synchronized with the simulation.

The following figure shows one published scene queried three ways:

One population at one version, queried three ways. Every hit in this figure is computed from the boxes it draws.

The guide has the following sections:

Install

The Python wheel and the C SDK, and what each one needs.

Install
Your First Query

Publish prims from an ovstage stage and query them, then the same with your own arrays and in C.

Your First Query
Concepts

Populations, versions, views, results, batches, and pairs, with animated figures.

Concepts
Examples

Eleven short rendered lessons, each in Python and C++.

Examples
API Reference

Every C declaration, generated from the public headers, and the Python package.

API Reference
Coding Agents

A skill that teaches Claude Code, Codex, and other agents to write ovspatialquery programs.

Coding Agents
Troubleshooting

The messages a first installation or program most often meets, and how to fix each one.

Troubleshooting