Defines a physics material.
To be used with ContactMaterial.
// Create a wooden box var woodMaterial = new Material(); var boxShape = new Box({ material: woodMaterial }); body.addShape(boxShape); Copy
// Create a wooden box var woodMaterial = new Material(); var boxShape = new Box({ material: woodMaterial }); body.addShape(boxShape);
The material identifier. Read only.
Static
Id counter for materials
Defines a physics material.
To be used with ContactMaterial.
Example