FixtureDef class

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.

Constructors

FixtureDef()

Properties

density double
The density, usually in kg/m^2
read / write
filter Filter
Contact filtering data;
read / write
friction double
The friction coefficient, usually in the range 0,1.
read / write
isSensor bool
A sensor shape collects contact information but never generates a collision response.
read / write
restitution double
The restitution (elasticity) usually in the range 0,1.
read / write
shape Shape
The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.
read / write
userData Object
Use this to store application specific fixture data.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getDensity() double
The density, usually in kg/m^2
getFilter() Filter
Contact filtering data;
getFriction() double
The friction coefficient, usually in the range 0,1.
getRestitution() double
The restitution (elasticity) usually in the range 0,1.
getShape() Shape
The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.
getUserData() Object
Use this to store application specific fixture data.
setDensity(double density) → void
The density, usually in kg/m^2
setFilter(Filter filter) → void
Contact filtering data;
setFriction(double friction) → void
The friction coefficient, usually in the range 0,1.
setRestitution(double restitution) → void
The restitution (elasticity) usually in the range 0,1.
setShape(Shape shape) → void
The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.
setUserData(Object userData) → void
Use this to store application specific fixture data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited