Class ContactMaterial

Defines what happens when two materials meet.

Todo

Refactor materials to materialA and materialB

Constructors

  • Parameters

    • m1: Material
    • m2: Material
    • options: {
          contactEquationRelaxation?: number;
          contactEquationStiffness?: number;
          friction?: number;
          frictionEquationRelaxation?: number;
          frictionEquationStiffness?: number;
          restitution?: number;
      }
      • Optional contactEquationRelaxation?: number

        Relaxation time of the produced contact equations.

        Default

        3
        
      • Optional contactEquationStiffness?: number

        Stiffness of the produced contact equations.

        Default

        1e7
        
      • Optional friction?: number

        Friction coefficient.

        Default

        0.3
        
      • Optional frictionEquationRelaxation?: number

        Relaxation time of the produced friction equations

        Default

        3
        
      • Optional frictionEquationStiffness?: number

        Stiffness of the produced friction equations.

        Default

        1e7
        
      • Optional restitution?: number

        Restitution coefficient.

        Default

        0.3
        

    Returns ContactMaterial

Properties

contactEquationRelaxation: number

Relaxation time of the produced contact equations.

Default

3
contactEquationStiffness: number

Stiffness of the produced contact equations.

Default

1e7
friction: number

Friction coefficient.

Default

0.3
frictionEquationRelaxation: number

Relaxation time of the produced friction equations

Default

3
frictionEquationStiffness: number

Stiffness of the produced friction equations.

Default

1e7
id: number

Identifier of this material.

materials: [Material, Material]

Participating materials.

restitution: number

Restitution coefficient.

Default

0.3
idCounter: number