Constraint class

Constraint base class

Implementers

Constructors

Constraint(Body bodyA, Body bodyB, {bool collideConnected = true, bool wakeUpBodies = true})

Properties

bodyA Body
getter/setter pair
bodyB Body
getter/setter pair
collideConnected bool
Set to false if you don't want the bodies to collide when they are connected.
getter/setter pair
equations List<Equation>
Equations to be solved in this constraint.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disable() → void
Disables all equations in the constraint.
enable() → void
Enables all equations in the constraint.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update() → void
Update all the equations with data.

Operators

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

Static Properties

idCounter int
getter/setter pair