FixtureDef class

Used to create a Fixture.

You can reuse fixture definitions safely.

Constructors

FixtureDef(Shape shape, {Object? userData, double friction = 0, double restitution = 0, double density = 1, bool isSensor = false, Filter? filter})

Properties

density double
The density, usually in kg/m^2.
getter/setter pair
filter Filter
Contact filtering data.
getter/setter pair
friction double
The friction coefficient, usually in the range 0,1.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isSensor bool
A sensor shape collects contact information but never generates a collision response.
getter/setter pair
restitution double
The restitution (elasticity) usually in the range 0,1.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape Shape
The Shape, this must be set.
getter/setter pair
userData Object?
Use this to store application specific fixture data.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited