Table of Contents

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 float

Coefficient of friction to apply for the constraint. Maximum friction force will be equal to the normal force times the friction coefficient.

maximumRecoveryVelocity float

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.

springSettings SpringSettings

Defines 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

float

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

float

SpringSettings

Defines the constraint's penetration recovery spring properties.

public SpringSettings SpringSettings

Field Value

SpringSettings