API Docs for: 0.6.1
Show:

ContactMaterial Class

Defines what happens when two materials meet.

Constructor

ContactMaterial

(
  • m1
  • m2
  • [options]
)

Parameters:

  • m1 Material
  • m2 Material
  • [options] Object optional
    • [friction=0.3] Number optional
    • [restitution=0.3] Number optional
    • [contactEquationStiffness=1e7] Number optional
    • [contactEquationRelaxation=3] Number optional
    • [frictionEquationStiffness=1e7] Number optional
    • [frictionEquationRelaxation=3] Number optional

Properties

contactEquationRelaxation

Number

Relaxation time of the produced contact equations

contactEquationStiffness

Number

Stiffness of the produced contact equations

friction

Number

Friction coefficient

frictionEquationRelaxation

Number

Relaxation time of the produced friction equations

frictionEquationStiffness

Number

Stiffness of the produced friction equations

id

Number

Identifier of this material

materials

Array

Participating materials

restitution

Number

Restitution coefficient