A material object can be constructed with Physics2DDevice.createMaterial, with a singleton, default material accessibly by Physics2DDevice.getDefaultMaterial.
Summary
Access the elasticity of this material.
Syntax
var elasticity = material.getElasticity();
Summary
Access the coefficient of static friction for this material.
Syntax
var elasticity = material.getStaticFriction();
Summary
Access the coefficient of dynamic friction for this material.
Syntax
var dynamicFriction = material.getDynamicFriction();
Summary
Access the coefficient of rolling friction for this material.
Syntax
var rollingFriction = material.getRollingFriction();
Summary
Access the density of this material.
Syntax
var density = material.getDensity();