Constraint constructor
Implementation
Constraint(
this.bodyA,
this.bodyB,
{
this.collideConnected = true,
bool wakeUpBodies = true
}
) {
id = Constraint.idCounter++;
if (wakeUpBodies) {
bodyA.wakeUp();
bodyB.wakeUp();
}
}