definePhysicsMaterial#

Fully qualified name: usdex::core::definePhysicsMaterial

pxr::UsdShadeMaterial usdex::core::definePhysicsMaterial(
pxr::UsdPrim parent,
const std::string &name,
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.

This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.

Parameters:
  • parent – Prim below which to define the physics material

  • name – Name of the physics 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