containsBody method

bool containsBody(
  1. Body body
)

Whether the body is connected to the joint

Implementation

bool containsBody(Body body) => body == bodyA || body == bodyB;