API Docs for: 0.6.1
Show:

Material Class

Defines a physics material.

Constructor

Material

(
  • [options]
)

Parameters:

  • [options] Object optional

Item Index

Properties

friction

Number

Friction for this material. If non-negative, it will be used instead of the friction given by ContactMaterials. If there's no matching ContactMaterial, the value from .defaultContactMaterial in the World will be used.

id

Number

material id.

name

String

restitution

Number

Restitution for this material. If non-negative, it will be used instead of the restitution given by ContactMaterials. If there's no matching ContactMaterial, the value from .defaultContactMaterial in the World will be used.