Known limitations and gaps#
Current boundaries of the session read/write API and unsupported combinations. See the session model for the API itself.
Structural changes through a native PhysX pointer are not recommended. A structural change adds, removes or re-inserts objects, moves them between scenes, or attaches or detaches shapes. ovphysx cannot detect such a change. After one, ovphysx reads and writes are not guaranteed to work until the stage is re-attached: a call may fail, read or write the wrong object without any error, or crash. Supported structural changes through ovstage and
update_from_ovstage, clone, or a re-attach of the stage keep reads and writes working. See Structural changes through a pointer.Removing individual articulation links at runtime is unsupported. This includes deleting the base link while
PhysicsArticulationRootAPIremains on a parent prim. PhysX does not support removing a link while its articulation is in a scene;update_from_ovstagedoes not rebuild the remaining articulation. Link counts, link paths, and tendon rows can remain stale or fail to read. To change the link structure, detach the stage and wait for completion, author a valid replacement articulation, then reattach the stage. Tendon cleanup after releasing an entire articulation does not make individual-link deletion supported.Removing an attribute while keeping its prim is not recommended. After an attribute is removed from a prim that stays (with
ovstage_delete_attributes, or by a USD edit that population applies), the PhysX value is undefined: depending on the attribute, it keeps its last value or returns to a default. Write the value you want instead.An update that runs several seals behind can miss a removed attribute. OVStage keeps the record of a deletion for a few seals only (OVStage 0.4: the newest four sealed ordinals). It can also drop the records of every earlier ordinal when a seal introduces an attribute that no prim on the stage carried before. An
update_from_ovstage()range that starts earlier than that still applies value writes, added prims and deleted prims. It does not apply an attribute removed from a prim that stays: the update completes successfully, and physics keeps the prim’s previous transform input, authored prim type or applied schemas. Update after each seal, write the value you want instead of removing the attribute, or reattach the stage after such a removal.An update range that starts that far behind must end at the newest sealed ordinal. While a later ordinal is sealed for prim types or applied schemas, which every
OVSTAGE_SCOPE_ALLseal does, such a range fails and applies nothing. Submit it again with the newest sealed ordinal as its end.A point-instancer write does not survive an articulation entering its scene. Articulations added through
update_from_ovstageor created at attach enter their scene at the next step. An instancer write opened before that step is refused at commit with nothing written; reopen it after the step.Wake / sleep has no leave-unchanged value. The
wakewrite attribute is the non-deprecated successor to per-binding wake/sleep. It drives every row it commits: nonzero wakes, zero sleeps — so a zero row actively sleeps that body (except on aneDISABLE_SLEEPINGscene, where the sleep half is a no-op). To leave bodies untouched, commit with a row mask that leaves them out, or narrow the query with a prim-set selection; selected sleeping bodies remain included. Refused on a DirectGPU scene (eENABLE_DIRECT_GPU_API), since the SDK disables sleeping there. ReadisSleepingseparately for the actual state of emitted rigid bodies or articulation links; it has no point-instancer form. Read semantics and mode restrictions.Articulation forward kinematics.
ovphysx_update_articulations_kinematicupdates the articulations selected by anARTICULATIONquery on CPU and GPU. POSITION and VELOCITY flags select the requested refresh; DirectGPU uses the SDK’s all-component refresh. It does not perform collision or contact processing, and it never warms the scene up: on a DirectGPU scene that has not stepped yet it is refused.Articulation joint frames cannot be edited live. Once an articulation joint is created, edits to
physics:localPos0,physics:localPos1,physics:localRot0andphysics:localRot1are not applied, including throughupdate_from_ovstage(). The stage can hold the edited values while physics keeps the creation-time frames. Author these frames before attaching the stage, or detach and reattach the edited stage to recreate the articulation. This restriction does not apply to standalone (non-articulation) joints.Unsupported device combinations. Vehicle controls and telemetry are host-resident and unavailable on DirectGPU; deformables and particles require a CUDA context (they emit nothing on a sim without one). Contact events and separate child-collider contact-sensor rows are available on CPU simulation and GPU dynamics with CPU readback. DirectGPU omits events (its raw contacts carry the points) and separate child-collider rows: a selection naming only such a collider discovers no rows. A standalone static collider remains a DirectGPU sensor row but reads zero force.
Legacy scene queries are unsupported on DirectGPU.
raycast,sweep, andoverlapuse CPU scene-query structures that do not receive GPU-updated body poses. They can return stale hits after simulation or session pose writes. Use CPU simulation or GPU dynamics with CPU readback instead. See Scene Queries.Contact limits. A contact query takes at most 21845 filters per sensor (the force matrix’s lanes). On a DirectGPU scene the per-contact order within a sensor (or filter column) is unspecified, and a sensor or filter that is a point-instancer prototype stands for its first instance only, as in the contact binding (CPU simulation and GPU dynamics with CPU readback cover every instance). For a lost contact pair whose sensor-side shape was removed the report drops that side’s body id, so the pair reaches a sensor’s events only through a collider id that still names it (a body that is its own collider).
SDF evaluation is DirectGPU-only, in mesh-local space.
ovphysx_evaluate_sdf_shapesrefuses a scene without the DirectGPU API (CPU evaluation is not implemented) and a selection spanning more than one scene. One call evaluates at most 65535 shapes, the most a single PhysX launch addresses (one CUDA grid row per shape), and at most 2^31 - 1 points in all (N x Q, which PhysX indexes in 32-bit arithmetic); split a larger selection or point set. Points and gradients are in each shape’s mesh-local space, with no world-space form, and every shape takes the same number of points per call. After physics objects are created, released, or transferred between scenes, evaluation waits for a simulation step, as PhysX uploads shape data to the GPU only when it simulates; any such change asks for the step, not only a change to an SDF shape.Character-controller orientation. With an unchanged up axis, the reported pose is the controller prim’s local-to-world rotation at creation, parent and the prim’s own orient together. The
physxCharacterController:upAxisworld token sets the controller up direction, and a prim rotation does not tilt it. A runtimeupAxisedit does not refresh the creation-time capsule-axis correction, so later pose output can disagree with the creation rotation after the actor changes orientation. PhysX does not rotate the proxy actor immediately on an up-axis edit; a later move that changes its position sets its target to the new direction. A later edit of the prim or parent rotation is not applied; the transform update still sets position only, and write-back keeps publishing the creation rotation while the up axis is unchanged. Center-of-mass position, center-of-mass orientation, inertia, and inverse inertia are expressed in that reported frame. For a sheared world transform, rotation uses the USDGfTransformdecomposition; shear itself is not represented in the pose.Kinematic-target writes require CPU or GPU scenes with CPU readback. Driving a rigid body through
kinematicTargetPosition/kinematicTargetOrientationis refused on a DirectGPU scene (the CPU-integrated target is never uploaded to the device). Directposition/orientationwrites are device-backed on DirectGPU, but teleport the body without a kinematic target’s step velocity; they are not an equivalent way to carry a resting load.ovphysx_writabilityis not the ovstage-drain coverage map. It reports what the imperative write session accepts. The separate ovstage value-change drain deliberately does not apply some of those attributes (tendon knobs, the rigid mass frame, deformable bind-pose points, local-space-velocity bodies, multi-axis D6 joints), falling back to the parse path — and on a DirectGPU scene a tendon change via the drain does not reliably take effect. Do not treat the writability query as the drain’s contract.Deferred rigid mass-frame edits can replace later session writes. A completed
update_from_ovstage()queues the mass-frame recomputation for the next step. A session mass/inertia/COM commit before that step does not cancel it, even if an immediate read returns the session value. Complete the step before committing an override that must survive the pending recomputation. See mass-edit ordering and persistence for an example and the effect of the intervening step.DirectGPU live velocity edits require world space after the first step. Once the scene’s first simulation step initializes DirectGPU,
update_from_ovstage()does not update solver velocities for dynamic (non-kinematic) rigid bodies withphysics:localSpaceVelocities = true. Theirphysics:velocityandphysics:angularVelocityedits reach unsupported PhysX setters; PhysX logs errors and the solver keeps its previous velocities, even if the drain completes. Initial local-space velocities and edits drained before that first step still apply. Kinematic bodies use a separate surface-velocity path. For live ovstage edits, configure world-space velocities before attaching and author world-space vectors. To drive a local-space-authored body at runtime, use the session write API’s world-spacelinearVelocityandangularVelocityinstead. SessionangularVelocityuses radians per second; USDphysics:angularVelocityuses degrees per second, so convert bypi / 180as well as rotating the vector into world space.Local-space velocity edits are not reframed for articulation roots.
physics:localSpaceVelocitiesis honored only for standalone rigid bodies and PointInstancer prototypes. On an articulation, the root’s authored local-space velocity is reframed at load, but a later velocity edit — throughupdate_from_ovstage()or a USD property change — is applied in its raw local numbers (no scale and rotation into world space), so it lands in the wrong frame; on a DirectGPU scene after its first step it is not applied at all. To drive an articulation root’s velocity at runtime, use the session write API’s world-spacerootLinearVelocity/rootAngularVelocity(angular in rad/s, not the USD deg/s); a link’s velocity is read-only.Runtime scale edits do not reach every body. Physics keeps the scale a body was created with, which
worldScalereports. A scale change that arrives as an edit (a USD edit, or an OVStage transform change, including one that animates a kinematic body) recreates a CPU-scene rigid body, kinematic or dynamic, with the new scale. Character controllers, DirectGPU rigid bodies, articulation links and kinematic bodies driven by time-sampled transforms do not apply it: they keep simulating, and reporting, the creation scale. The OVStage output helpers (ovphysx::utils::writeWorldTransformsToOvstage()andovphysx.utils.step_and_write_to_ovstage()) compose each body’s world matrix with that stored scale, so on every publication they overwrite anomni:fabric:worldMatrixthat a hierarchy recomputation derived from the edit, and the edit appears to snap back. Their hierarchy computation at the output ordinal also folds that matrix into the local transform, so the edit is overwritten there too. To change such a body’s scale, reattach the stage. For bodies outside articulations, removing and re-adding the prim is also an option.The OVStage output helpers publish a character controller’s creation orientation when its up axis is unchanged. A controller’s
RIGID_BODYorientationis then the prim’s creation local-to-world rotation (Character controllers), whileworldScaleis the decomposed creation scale. The helpers compose the two and their hierarchy computation folds that matrix into the controller prim’s local transform as well. The matrix combines the current position with the prim’s creation orientation and scale while the up axis is unchanged. Under shear, OVStage’s scale decomposition can differ from USD’s, and a rotation and diagonal scale cannot reproduce the original sheared matrix. The simulated capsule follows the up-axis token even when the prim is rotated. Later scale and rotation edits are not reflected in this output.
See also#
C API Reference — entry-point signatures and Doxygen
Python API Reference —
PhysX.query/PhysX.read/PhysX.writeovphysx overview — the simulation loop and core concepts
Population and Stage units — how a stage is populated from schema, fallbacks, and unit scaling