Module org.dyn4j

Interface PairedBodyJoint<T extends PhysicsBody>

    • Method Detail

      • getBody1

        T getBody1()
        Returns the first body.
        Returns:
        T
      • getBody2

        T getBody2()
        Returns the second body.
        Returns:
        T
      • getOtherBody

        T getOtherBody​(CollisionBody<?> body)
        Returns the body that does not match the given body.

        If the given body is neither body1 or body2, null is returned.

        Parameters:
        body - the body
        Returns:
        T