Appearance
Interface: FixtureOpt
A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.
Extended by
Properties
density?
optionaldensity:number
The density, usually in kg/m^2
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.
filterGroupIndex?
optionalfilterGroupIndex:number
Zero, positive or negative collision group. Fixtures with same positive groupIndex always collide and fixtures with same negative groupIndex never collide.
filterMaskBits?
optionalfilterMaskBits:number
Collision category bit or bits that this fixture accept for collision.
friction?
optionalfriction:number
The friction coefficient, usually in the range [0,1]
isSensor?
optionalisSensor:boolean
A sensor shape collects contact information but never generates a collision response.
restitution?
optionalrestitution:number
The restitution (elasticity) usually in the range [0,1]
style?
optionalstyle:Style
Styling for dev-tools.
userData?
optionaluserData:unknown