Appearance
Interface: FixtureDef
A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.
Extends
Properties
density?
optionaldensity:number
The density, usually in kg/m^2
Inherited from
filterCategoryBits?
optionalfilterCategoryBits:number
Collision category bit or bits that this fixture belongs to. If groupIndex is zero or not matching, then at least one bit in this fixture categoryBits should match other fixture maskBits and vice versa.
Inherited from
filterGroupIndex?
optionalfilterGroupIndex:number
Zero, positive or negative collision group. Fixtures with same positive groupIndex always collide and fixtures with same negative groupIndex never collide.
Inherited from
filterMaskBits?
optionalfilterMaskBits:number
Collision category bit or bits that this fixture accept for collision.
Inherited from
friction?
optionalfriction:number
The friction coefficient, usually in the range [0,1]
Inherited from
isSensor?
optionalisSensor:boolean
A sensor shape collects contact information but never generates a collision response.
Inherited from
restitution?
optionalrestitution:number
The restitution (elasticity) usually in the range [0,1]
Inherited from
shape
shape:
Shape
style?
optionalstyle:Style
Styling for dev-tools.
Inherited from
userData?
optionaluserData:unknown