API Docs for: 0.4.0
Show:

ContactMaterial Class

Defines a physics material.

Constructor

ContactMaterial

(
  • materialA
  • materialB
  • [options]
)

Parameters:

  • materialA Material
  • materialB Material
  • [options] Object optional
    • friction Number
    • restitution Number

Properties

friction

Number

Friction to use in the contact of these two materials

frictionRelaxation

Number

Relaxation of the resulting FrictionEquation that this ContactMaterial generate

frictionStiffness

Number

Stiffness of the resulting FrictionEquation that this ContactMaterial generate

id

Number

The contact material identifier

materialA

Material

First material participating in the contact material

materialB

Material

Second material participating in the contact material

relaxation

Number

Relaxation of the resulting ContactEquation that this ContactMaterial generate

restitution

Number

Restitution to use in the contact of these two materials

stiffness

Number

Stiffness of the resulting ContactEquation that this ContactMaterial generate