OmniPhysicsDeformableBodyAPI#

Makes a prim the root of a volume or surface deformable body. Enumerated by usd-schemas CONTAINS OmniPhysicsDeformableBodyAPI. The prim must be a Mesh, TetMesh or BasisCurves, or an Xformable that is not a Gprim, and its point-based subtree must hold exactly one simulation mesh (OmniPhysicsVolumeDeformableSimAPI or OmniPhysicsSurfaceDeformableSimAPI) on the prim itself or an immediate child, plus an enabled PhysicsCollisionAPI mesh; otherwise no body is created.

  • Applies to: Xformable

  • Read only when listed in usd-schemas.

  • No builder: ovphysx.population and Population.hpp do not write this component; the consumer reads it when another population writes it.

Columns#

Raw fallback is the USD schema value. Producer writes is what ovstage population puts in the column for a USD stage. Parser default applies on the consumer when the column is absent, in stage units. diverges means writing the raw fallback literally parses differently from omitting the column (the parser default): USD population may well publish that very value for an unauthored attribute, so the marker is about the column being present, not about its value.

Column

Type

Units

Raw fallback

Producer writes

Parser default

If absent

omniphysics:deformableBodyEnabled

bool8

none

true

resolved USD value (authored, else raw fallback)

false diverges

false (the parser’s default), not USD’s true: the body gets a runtime record but no PhysX deformable, and its PhysicsCollisionAPI meshes are no longer excluded from the rigid collider scan. Write true.

omniphysics:mass

float32

mass

0.0

resolved USD value (authored, else raw fallback)

0.0

0.0: no explicit mass; see the sentinel rule.

Interactions#

  • OmniPhysicsBodyAPI: kinematicEnabled, startsAsleep and simulationOwner are read on this prim only when OmniPhysicsBodyAPI is listed in usd-schemas as well.

  • OmniPhysicsVolumeDeformableSimAPI: The single simulation mesh in the subtree decides the body kind: volume for OmniPhysicsVolumeDeformableSimAPI, surface for OmniPhysicsSurfaceDeformableSimAPI. A second simulation mesh, or one below an immediate child, drops the body silently.

  • PhysicsCollisionAPI: The first point-based prim in the subtree with PhysicsCollisionAPI (physics:collisionEnabled not false) is the collision mesh. None logs ‘No UsdPhysics.CollisionAPI found on deformable body prim or sub-tree’ and no body is created; a volume body needs a tet collision mesh, a surface body its simulation mesh as collision mesh.

  • OmniPhysicsDeformableMaterialAPI: The material bound to the simulation mesh supplies the PhysX deformable material and the density for the mass when it was created as the matching kind: a volume material (OmniPhysicsDeformableMaterialAPI without the surface API) for a volume body, a surface material (OmniPhysicsSurfaceDeformableMaterialAPI) for a surface body. Otherwise the scene’s default deformable material of that kind is used.

  • OmniPhysicsDeformablePoseAPI: The walker looks for a bindPose instance on the simulation, collision, skin and cooking-source meshes of the subtree.

Notes#

  • The runtime also reads physics:filteredPairs and the PhysxBaseDeformableBodyAPI, PhysxSurfaceDeformableBodyAPI and PhysxAutoDeformableBodyAPI columns on this prim; those belong to their own components.

  • Body creation also requires a scene with the full GPU pipeline; otherwise it logs an error and creates no body.