PhysxBaseDeformableBodyAPI#

PhysX tuning for a volume or surface deformable body (damping, velocity caps, sleep and settling thresholds, self collision, gravity, speculative CCD, solver iterations), read on the prim carrying OmniPhysicsDeformableBodyAPI only when PhysxBaseDeformableBodyAPI is listed in its usd-schemas. Without the API, or with a column absent, the parser keeps its descriptor defaults, several of which are units-scaled or differ from the schema fallback.

  • Applies to: Xformable

  • Requires on the same prim: OmniPhysicsDeformableBodyAPI

  • Read only when listed in usd-schemas.

  • Uses blocks: stage_units

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

What USD population writes#

Published like any applied physics API: every declared attribute at its resolved value. No column is rewritten or created by the producer, so on a producer-populated stage the raw schema fallbacks (linearDamping 0, maxDepenetrationVelocity inf, sleepThreshold 0.05, an unscaled settlingThreshold 0.1) reach the consumer instead of its defaults.

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

physxDeformableBody:disableGravity

bool8

none

false

resolved USD value (authored, else raw fallback)

false

false: gravity applies.

physxDeformableBody:enableSpeculativeCCD

bool8

none

false

resolved USD value (authored, else raw fallback)

false

false: speculative CCD is off.

physxDeformableBody:linearDamping

float32

1/s

0.0

resolved USD value (authored, else raw fallback)

0.005 diverges

0.005, the descriptor default (the legacy USD loader used the same), not the schema fallback 0: an omitted column damps the body slightly where a written 0 does not.

physxDeformableBody:maxDepenetrationVelocity

float32

length/s

inf

resolved USD value (authored, else raw fallback)

3 / metersPerUnit diverges

Units-scaled default: 3 on a metre stage, 300 on a centimetre stage. The schema fallback inf leaves depenetration unlimited, so write the value you mean.

physxDeformableBody:maxLinearVelocity

float32

length/s

inf

resolved USD value (authored, else raw fallback)

1.844674e+19

1.844674e19 (the square root of FLT_MAX, the descriptor default), effectively unlimited. Volume creation clamps the value to [0, 1e16], so a volume body gets 1e16 whether the column is absent or holds the schema fallback inf; a surface body receives the value unclamped (1.84e19 absent, inf for the fallback), unlimited either way.

physxDeformableBody:selfCollision

bool8

none

false

resolved USD value (authored, else raw fallback)

false

false: self collision is off.

physxDeformableBody:selfCollisionFilterDistance

float32

length

-inf

resolved USD value (authored, else raw fallback)

-1.0

-1, below any valid distance, so the runtime uses its minimum: 2.5 x contact offset + 1e-5 x metersPerUnit for a volume body, 2 x rest offset + 1e-5 x metersPerUnit for a surface body, both offsets read back from the created PhysX shape. The schema fallback -inf gives the same minimum.

physxDeformableBody:settlingDamping

float32

1/s

10.0

resolved USD value (authored, else raw fallback)

10.0

10.

physxDeformableBody:settlingThreshold

float32

length/s

0.1

resolved USD value (authored, else raw fallback)

0.1 / metersPerUnit diverges

Units-scaled default: 0.1 on a metre stage, 10 on a centimetre stage. The schema fallback 0.1 matches only on a metre stage.

physxDeformableBody:sleepThreshold

float32

length/s

0.05

resolved USD value (authored, else raw fallback)

5e-5 * (10 / metersPerUnit) ** 2 diverges

Units-scaled default 5e-5 x (10 / metersPerUnit)^2: 0.005 on a metre stage, 50 on a centimetre stage, not the schema fallback 0.05.

physxDeformableBody:solverPositionIterationCount

uint32

none

16

resolved USD value (authored, else raw fallback)

16

16. At creation and on update the count is clamped to the scene’s [physxScene:minPositionIterationCount, physxScene:maxPositionIterationCount]; a row outside the uint32 range is ignored at parse, keeping 16.

Interactions#

  • OmniPhysicsDeformableBodyAPI: Read only on a prim enumerated by OmniPhysicsDeformableBodyAPI that the ovstage walker accepts as a deformable body: a Mesh, TetMesh or BasisCurves, or an Xformable that is not a Gprim, with exactly one simulation mesh (OmniPhysicsVolumeDeformableSimAPI or OmniPhysicsSurfaceDeformableSimAPI) on the prim itself or an immediate child.

  • PhysxSurfaceDeformableBodyAPI: USD applies this API as a built-in of PhysxSurfaceDeformableBodyAPI and USD population lists both names in usd-schemas. The parser checks each name on its own, so a hand-populated surface body must list PhysxBaseDeformableBodyAPI for these columns to be read.

Notes#

  • The runtime applies a live change of any column without checking that the API is listed; a column that is absent then leaves the PhysX value unchanged.