Class Material

Defines a physics material.

To be used with ContactMaterial.

Example

// Create a wooden box
var woodMaterial = new Material();
var boxShape = new Box({
material: woodMaterial
});
body.addShape(boxShape);

Hierarchy

  • Material

Constructors

Properties

Constructors

Properties

id: number

The material identifier. Read only.

idCounter: number = 0

Id counter for materials