isaaclab_physx.sim.spawners#
Sub-module for PhysX material configuration compatibility exports.
Classes
PhysX-specific physics-material parameters for rigid bodies. |
|
|
|
PhysX-specific physics material parameters for deformable bodies. |
|
PhysX-specific physics material parameters for surface deformable bodies. |
|
PhysX-specific material properties for a deformable body. |
|
Deprecated: use |
|
Deprecated: use |
Rigid Materials#
- class isaaclab_physx.sim.spawners.materials.PhysxRigidBodyMaterialCfg[source]#
Bases:
RigidBodyMaterialBaseCfgPhysX-specific physics-material parameters for rigid bodies.
Extends
RigidBodyMaterialBaseCfgwith the PhysxMaterialAPI schema fields: compliant-contact spring (stiffness/damping) and the friction/restitution combine-mode tokens. Newton’s USD importer also recognizes stiffness and damping as fallback contact parameters; the acceleration-spring flag and combine modes are PhysX-only.See
spawn_rigid_body_material()for more information.Attributes:
Spring stiffness for a compliant contact model using implicit springs.
Damping coefficient for a compliant contact model using implicit springs.
Whether the compliant contact spring is formulated in acceleration (rather than force) units.
The static friction coefficient.
The dynamic friction coefficient.
The restitution coefficient.
The material density [kg/m^3].
Determines the way friction will be combined during collisions.
Determines the way restitution coefficient will be combined during collisions.
Determines the way the (compliant-contact) damping coefficient is combined during collisions.
- compliant_contact_stiffness: float | None#
Spring stiffness for a compliant contact model using implicit springs.
A higher stiffness results in behavior closer to a rigid contact. The compliant contact model is only enabled if the stiffness is larger than 0. Newton’s USD importer also recognizes this attribute as a fallback contact-stiffness value.
- compliant_contact_damping: float | None#
Damping coefficient for a compliant contact model using implicit springs.
Irrelevant if compliant contacts are disabled when
compliant_contact_stiffnessis set to zero and rigid contacts are active. Newton’s USD importer also recognizes this attribute as a fallback contact-damping value.
- compliant_contact_acceleration_spring: bool | None#
Whether the compliant contact spring is formulated in acceleration (rather than force) units.
Only relevant when compliant contacts are enabled (
compliant_contact_stiffnessis non-zero). PhysX-only; not consumed by Newton.
- density: float | None#
The material density [kg/m^3]. Defaults to None, in which case it is not authored.
Writes
physics:density. It is a fallback for collision shapes bound to this material; explicitly authored rigid-body mass or density takes precedence.
- friction_combine_mode: Literal['average', 'min', 'multiply', 'max'] | None#
Determines the way friction will be combined during collisions.
Attention
When two physics materials with different combine modes collide, the combine mode with the higher priority will be used. The priority order is provided here.
- restitution_combine_mode: Literal['average', 'min', 'multiply', 'max'] | None#
Determines the way restitution coefficient will be combined during collisions.
Attention
When two physics materials with different combine modes collide, the combine mode with the higher priority will be used. The priority order is provided here.
- damping_combine_mode: Literal['average', 'min', 'multiply', 'max'] | None#
Determines the way the (compliant-contact) damping coefficient is combined during collisions.
Attention
When two physics materials with different combine modes collide, the combine mode with the higher priority will be used. The priority order is provided here.
- class isaaclab_physx.sim.spawners.materials.PhysxMaterialCfg[source]#
Bases:
RigidBodyMaterialFragmentphysxMaterial:*rigid-body material attributes from PhysxMaterialAPI.Single-namespace fragment (see
RigidBodyMaterialFragment) for the PhysX material namespace: compliant-contact spring (stiffness/damping), which Newton’s USD importer can read as fallback contact parameters, plus PhysX-only acceleration-spring and combine-mode knobs. ThePhysxMaterialAPIschema is applied (and thephysxMaterial:*attributes authored) by the genericapply_namespaced()writer.Nonefields are left unchanged.Attributes:
Spring stiffness for a compliant contact model using implicit springs.
Damping coefficient for a compliant contact model using implicit springs.
Whether the compliant contact spring is formulated in acceleration (rather than force) units.
How friction is combined during collisions.
How restitution is combined during collisions.
How the (compliant-contact) damping coefficient is combined during collisions.
- compliant_contact_stiffness: float | None#
Spring stiffness for a compliant contact model using implicit springs.
A higher stiffness results in behavior closer to a rigid contact. The compliant contact model is only enabled if the stiffness is larger than 0. Writes
physxMaterial:compliantContactStiffness.
- compliant_contact_damping: float | None#
Damping coefficient for a compliant contact model using implicit springs.
Irrelevant if compliant contacts are disabled (
compliant_contact_stiffnessis zero). WritesphysxMaterial:compliantContactDamping.
- compliant_contact_acceleration_spring: bool | None#
Whether the compliant contact spring is formulated in acceleration (rather than force) units.
Writes
physxMaterial:compliantContactAccelerationSpring. Only relevant when compliant contacts are enabled (compliant_contact_stiffnessis non-zero).
- friction_combine_mode: Literal['average', 'min', 'multiply', 'max'] | None#
How friction is combined during collisions. Writes
physxMaterial:frictionCombineMode.
- restitution_combine_mode: Literal['average', 'min', 'multiply', 'max'] | None#
How restitution is combined during collisions. Writes
physxMaterial:restitutionCombineMode.
- damping_combine_mode: Literal['average', 'min', 'multiply', 'max'] | None#
How the (compliant-contact) damping coefficient is combined during collisions.
Writes
physxMaterial:dampingCombineMode.Attention
When two physics materials with different combine modes collide, the combine mode with the higher priority will be used. The priority order is provided here.
Deformable Materials#
PhysX provides the backend-specific deformable material cfgs. Deformable material spawning is unified in
isaaclab.sim.spawners.materials.spawn_deformable_body_material().
- class isaaclab_physx.sim.spawners.materials.PhysxDeformableBodyMaterialCfg[source]#
Bases:
DeformableBodyMaterialBaseCfg,OmniPhysicsDeformableMaterialCfg,PhysXDeformableMaterialCfgPhysX-specific physics material parameters for deformable bodies.
Attributes:
The elasticity damping for the deformable material.
The material density [kg/m^3].
The static friction coefficient.
The dynamic friction coefficient.
The Young's modulus, which defines the body's stiffness [Pa].
The Poisson's ratio which defines the body's volume preservation.
- class isaaclab_physx.sim.spawners.materials.PhysxSurfaceDeformableBodyMaterialCfg[source]#
Bases:
SurfaceDeformableBodyMaterialBaseCfg,OmniPhysicsSurfaceDeformableMaterialCfg,PhysXDeformableMaterialCfgPhysX-specific physics material parameters for surface deformable bodies.
Attributes:
Damping acting against bend-resistance forces [1/s].
The elasticity damping for the deformable material.
The material density [kg/m^3].
The static friction coefficient.
The dynamic friction coefficient.
The Young's modulus, which defines the body's stiffness [Pa].
The Poisson's ratio which defines the body's volume preservation.
The thickness of the deformable body's surface [m].
The stretch stiffness of the deformable body's surface.
The shear stiffness of the deformable body's surface.
The bend stiffness of the deformable body's surface.
- youngs_modulus: float#
The Young’s modulus, which defines the body’s stiffness [Pa]. Defaults to 1 MPa.
- surface_stretch_stiffness: float#
The stretch stiffness of the deformable body’s surface. Defaults to 0.0.
Deprecated Aliases#
- class isaaclab_physx.sim.spawners.materials.DeformableBodyMaterialCfg[source]#
Bases:
PhysxDeformableBodyMaterialCfgDeprecated: use
PhysxDeformableBodyMaterialCfg.Deprecated since version 4.6.x:
DeformableBodyMaterialCfghas moved toPhysxDeformableBodyMaterialCfgfor PhysX-specific deformable materials and is scheduled for removal in 5.0.Attributes:
The elasticity damping for the deformable material.
The material density [kg/m^3].
The static friction coefficient.
The dynamic friction coefficient.
The Young's modulus, which defines the body's stiffness [Pa].
The Poisson's ratio which defines the body's volume preservation.
- class isaaclab_physx.sim.spawners.materials.SurfaceDeformableBodyMaterialCfg[source]#
Bases:
PhysxSurfaceDeformableBodyMaterialCfgDeprecated: use
PhysxSurfaceDeformableBodyMaterialCfg.Deprecated since version 4.6.x:
SurfaceDeformableBodyMaterialCfghas moved toPhysxSurfaceDeformableBodyMaterialCfgfor PhysX-specific surface deformable materials and is scheduled for removal in 5.0.Attributes:
The elasticity damping for the deformable material.
The material density [kg/m^3].
The static friction coefficient.
The dynamic friction coefficient.
The Young's modulus, which defines the body's stiffness [Pa].
The Poisson's ratio which defines the body's volume preservation.
The thickness of the deformable body's surface [m].
The stretch stiffness of the deformable body's surface.
The shear stiffness of the deformable body's surface.
The bend stiffness of the deformable body's surface.
Damping acting against bend-resistance forces [1/s].
- youngs_modulus: float#
The Young’s modulus, which defines the body’s stiffness [Pa]. Defaults to 1 MPa.
- surface_stretch_stiffness: float#
The stretch stiffness of the deformable body’s surface. Defaults to 0.0.
- surface_shear_stiffness: float#
The shear stiffness of the deformable body’s surface. Defaults to 0.0.