A Structure that describes the physical properties of a Body.

Static variables

@:value({ })staticglobal:Material = { }

Variables

@:value(1)density:Float = 1

@:value(0)elasticity:Float = 0

Value to determine how much of a Body's velocity should be retained during collisions (or how much should the Body "bounce" in other words).

@:value(1)gravity_scale:Float = 1

Percentage value that represents how much a World's gravity affects the Body.