definePhysicsMaterial#
Fully qualified name: usdex::core::definePhysicsMaterial
- pxr::UsdShadeMaterial usdex::core::definePhysicsMaterial(
- pxr::UsdStagePtr stage,
- const pxr::SdfPath &path,
- const float dynamicFriction,
- const std::optional<float> staticFriction = std::nullopt,
- const std::optional<float> restitution = std::nullopt,
- const std::optional<float> density = std::nullopt,
Creates a Physics Material.
When
UsdPhysicsMaterialAPIis applied on aUsdShadeMaterialit specifies various physical properties which should be used during simulation of the bound geometry.See UsdPhysicsMaterialAPI for details.
- Parameters:
stage – The stage on which to define the material
path – The absolute prim path at which to define the material
dynamicFriction – The dynamic friction of the material
staticFriction – The static friction of the material
restitution – The restitution of the material
density – The density of the material
- Returns:
UsdShadeMaterial schema wrapping the defined UsdPrim