ShapeConfig class

A shape configuration holds common configuration data for constructing a shape. These configurations can be reused safely.

Constructors

ShapeConfig({double friction = 0.4, double restitution = 0.4, double density = 1, int collidesWith = 0xffffffff, int belongsTo = 1, Shapes geometry = Shapes.none, Vector3? relativePosition, Matrix3? relativeRotation})

Properties

belongsTo ↔ int
bits of the collision groups to which the shape belongs.
getter/setter pair
collidesWith ↔ int
bits of the collision groups with which the shape collides.
getter/setter pair
density ↔ double
density of the shape.
getter/setter pair
friction ↔ double
coefficient of friction of the shape.
getter/setter pair
geometry ↔ Shapes
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
relativePosition ↔ Vector3
position of the shape in parent's coordinate system.
getter/setter pair
relativeRotation ↔ Matrix3
rotation matrix of the shape in parent's coordinate system.
getter/setter pair
restitution ↔ double
coefficient of restitution of the shape.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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