OmniPhysicsBaseMaterialAPI (deformable material friction and density)#
Friction and density of an OmniPhysics deformable material. Read on a material the walker enumerates through OmniPhysicsDeformableMaterialAPI or OmniPhysicsSurfaceDeformableMaterialAPI (USD lists this API as their built-in) and on the material bound to a PhysicsScene, in both cases only when OmniPhysicsBaseMaterialAPI is listed in usd-schemas.
Applies to:
MaterialRead only when listed in
usd-schemas.No builder:
ovphysx.populationandPopulation.hppdo 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 |
|---|---|---|---|---|---|---|
|
float32 |
mass/length^3 |
0.0 |
resolved USD value (authored, else raw fallback) |
-1.0 |
-1.0, the material descriptor’s unset sentinel: a bound body without omniphysics:mass gets the default density. The raw fallback 0.0 reads as unset too, so writing it literally is harmless. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0.0 (the material descriptor’s default). The value is never used: a PhysX deformable material has no static friction. |
|
float32 |
none |
0.0 |
resolved USD value (authored, else raw fallback) |
0.0 |
0.0, frictionless, on a material the walker enumerates. The material bound to the PhysicsScene, which also becomes the scene’s default deformable material, starts from the consumer default instead: 0.25. |
Interactions#
OmniPhysicsDeformableMaterialAPI: A material prim becomes a deformable material only through OmniPhysicsDeformableMaterialAPI or OmniPhysicsSurfaceDeformableMaterialAPI. With this API alone only a material bound to a PhysicsScene is read, into the scene’s default deformable materials.