otherBody method
Body
otherBody(
- Body body
Get the other body than the argument in the joint
Implementation
Body otherBody(Body body) {
assert(containsBody(body), 'Body is not in the joint');
return body == bodyA ? bodyB : bodyA;
}