OmniPhysicsBodyAPI (deformable body flags)#

Simulation-body flags of the OmniPhysics deformable schema. The runtime reads them only on a prim it enumerates through OmniPhysicsDeformableBodyAPI, and only when OmniPhysicsBodyAPI is listed in usd-schemas too.

  • Applies to: Xformable

  • Requires on the same prim: OmniPhysicsDeformableBodyAPI

  • 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:kinematicEnabled

bool8

none

false

resolved USD value (authored, else raw fallback)

false

false: a dynamic deformable body, the only kind the runtime supports. With true, volume and surface body creation log ‘Currently kinematic deformable bodies are not supported.’ and create no body (volume cooking refuses it too).

omniphysics:startsAsleep

bool8

none

false

resolved USD value (authored, else raw fallback)

false

false: the body starts awake with its simulation mesh’s velocities. With true the runtime sets the wake counter to 0 and zeroes the initial velocities.

omniphysics:simulationOwner

uint64 array, RELATIONSHIP_PATH_ID

not written

The body joins the default PhysX scene (the first one registered). Only the first target is used, and a first target that is not a PhysicsScene leaves the body in the default scene too; it is not dropped.

Interactions#

  • OmniPhysicsDeformableBodyAPI: USD lists OmniPhysicsBodyAPI as a built-in of OmniPhysicsDeformableBodyAPI. The runtime checks the usd-schemas list for each separately, so a hand populator must list both for these columns to be read; on a prim without OmniPhysicsDeformableBodyAPI they are ignored.