OmniPhysicsDeformableMaterialAPI#

Elasticity of an OmniPhysics deformable material. The walker enumerates a material by usd-schemas CONTAINS OmniPhysicsDeformableMaterialAPI or OmniPhysicsSurfaceDeformableMaterialAPI and creates a PxDeformableVolumeMaterial for it (a PxDeformableSurfaceMaterial when the surface API is listed). Every column is gated by its own API being listed; absent columns keep the material descriptor’s defaults.

  • Applies to: Material

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

float32

mass/(length*s^2)

0.0

resolved USD value (authored, else raw fallback)

0.0

0.0 on a material the walker enumerates: PhysX gets a material with zero Young’s modulus, without elastic stiffness. The material bound to the PhysicsScene, which also becomes the scene’s default deformable material, starts from the consumer default instead: 5e5 Pa in stage units.

omniphysics:poissonsRatio

float32

none

0.25

resolved USD value (authored, else raw fallback)

0.0 diverges

0.0 (the material descriptor’s default), not USD’s 0.25: no volume preservation. The material bound to the PhysicsScene, which also becomes the scene’s default deformable material, starts from the consumer default instead: 0.45. Every parsed value is clamped to at most 0.4999.

Interactions#

  • OmniPhysicsBaseMaterialAPI: Friction and density are read only when OmniPhysicsBaseMaterialAPI is listed in usd-schemas as well (USD lists it as a built-in of this API).

  • PhysicsScene: For the material bound to a PhysicsScene the consumer applies its own defaults first (staticFriction 0.5, dynamicFriction 0.25, youngsModulus 5e5 * metersPerUnit / kilogramsPerUnit, poissonsRatio 0.45, surfaceThickness 0.001 / metersPerUnit) and creates the scene’s default deformable materials from it; a body bound to that material uses them.

Notes#

  • The ovstage walker enumerates OmniPhysicsDeformableMaterialAPI, OmniPhysicsSurfaceDeformableMaterialAPI and OmniPhysicsCurveDeformableMaterialAPI; the last name is not the schema’s OmniPhysicsCurvesDeformableMaterialAPI, so a curves material is found only through its OmniPhysicsDeformableMaterialAPI built-in.