Struct PairMaterialProperties
- Namespace
- BepuPhysics.CollisionDetection
- Assembly
- BepuPhysics.dll
Material properties governing the interaction between colliding bodies. Used by the narrow phase to create constraints of the appropriate configuration.
public struct PairMaterialProperties
- Inherited Members
Constructors
PairMaterialProperties(float, float, SpringSettings)
Constructs a pair's material properties.
public PairMaterialProperties(float frictionCoefficient, float maximumRecoveryVelocity, SpringSettings springSettings)
Parameters
frictionCoefficient
floatCoefficient of friction to apply for the constraint. Maximum friction force will be equal to the normal force times the friction coefficient.
maximumRecoveryVelocity
floatMaximum relative velocity along the contact normal at which the collision constraint will recover from penetration. Clamps the velocity goal created from the spring settings.
springSettings
SpringSettingsDefines the constraint's penetration recovery spring properties.
Fields
FrictionCoefficient
Coefficient of friction to apply for the constraint. Maximum friction force will be equal to the normal force times the friction coefficient.
public float FrictionCoefficient
Field Value
MaximumRecoveryVelocity
Maximum relative velocity along the contact normal at which the collision constraint will recover from penetration. Clamps the velocity goal created from the spring settings.
public float MaximumRecoveryVelocity
Field Value
SpringSettings
Defines the constraint's penetration recovery spring properties.
public SpringSettings SpringSettings