PhysxAutoDeformableAttachmentAPI#
An authoring container that generates vertex attachments and element collision filters between its two attachables, a deformable body and a second deformable body or an Xformable’s colliders. The runtime finds it by the applied API at load; on an ovstage attach the attachment and filter children are generated in memory and their data is computed from these columns.
Applies to:
Xformable,ImageableRead only when listed in
usd-schemas.No builder:
ovphysx.populationandPopulation.hppdo 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, relationships only when authored; a prim carrying this API is in physics scope on its own. No column is rewritten or created by the producer.
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 |
|---|---|---|---|---|---|---|
|
uint64 array, RELATIONSHIP_PATH_ID |
not written |
No attachment: both attachable relationships must exist with exactly one target each, otherwise attachable parsing fails with a warning and nothing is generated. A target is a deformable body (OmniPhysicsDeformableBodyAPI) or an Xformable whose colliders are used; supported pairs are volume-volume, volume-surface and deformable-Xformable, in either order. |
|||
|
uint64 array, RELATIONSHIP_PATH_ID |
not written |
Same as attachable0: without exactly one target on each relationship nothing is generated. |
|||
|
float32 |
length |
|
resolved USD value (authored, else raw fallback) |
0.0 diverges |
0: elements are filtered only where they overlap the other actor. A non-finite value (the schema fallback -inf) selects the heuristic, 10% of the smaller average dimension of the two actors, so write the value you mean. |
|
float32 |
length |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0: a deformable vertex is attached only where it lies inside the other actor. |
|
bool8 |
none |
true |
resolved USD value (authored, else raw fallback) |
false diverges |
false: no collision filtering is computed and the generated filter children are published disabled. USD’s fallback is true, so write the value. |
|
bool8 |
none |
false |
resolved USD value (authored, else raw fallback) |
false |
false: between two deformable bodies every overlapping element of one is filtered against every overlapping element of the other, instead of per overlapping element pair. Not used with an Xformable attachable. |
|
bool8 |
none |
true |
resolved USD value (authored, else raw fallback) |
false diverges |
false: no vertex attachments are computed and the generated attachment children are published disabled. USD’s fallback is true, so write the value. |
|
bool8 |
none |
false |
resolved USD value (authored, else raw fallback) |
false |
false. The flag has no effect in this runtime: rigid surface sampling is compiled out, so the value only enters the attachment input CRC. |
|
uint64 array, RELATIONSHIP_PATH_ID |
not written |
No mask: every vertex and element is a candidate. Sphere, Cube and Capsule targets restrict attachments to points inside them (filtering to points within collisionFilteringOffset of them); other targets are ignored. |
|||
|
float32 |
length |
|
resolved USD value (authored, else raw fallback) |
0.0 |
0. The value has no effect in this runtime (rigid surface sampling is compiled out); it only enters the attachment input CRC, so the schema fallback -inf and an omitted column generate the same attachment. |
Interactions#
OmniPhysicsDeformableBodyAPI: An attachable carrying OmniPhysicsDeformableBodyAPI is re-parsed as a deformable body (and auto-cooked when it enables PhysxAutoDeformableBodyAPI generation) before the attachment data is computed.
Notes#
The parameters are read when the attachment is set up or refreshed at load; the runtime does not watch them for live changes, and a refresh recomputes the data only when the input CRC over the parameters, the mask shapes and the attachables’ cooked mesh data changed.
With a stage the runtime can author, the input CRC is stored in and read back from physxAutoDeformableAttachment:inputCrc, a runtime bookkeeping attribute no schema declares; on an ovstage attach it is kept in memory. It is not described here.