Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

Properties

Constructors

  • Returns Material

Properties

id: number

The material identifier. Read only.

idCounter: number = 0

Id counter for materials