Module org.dyn4j

Interface CollisionPair<T extends CollisionBody<E>,​E extends Fixture>

    • Method Detail

      • getFixture1

        E getFixture1()
        Returns the first Fixture.
        Returns:
        T
      • getFixture2

        E getFixture2()
        Returns the second Fixture.
        Returns:
        T
      • getBody

        T getBody​(CollisionBody<?> body)
        Returns the body that matches the given body.

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

        Parameters:
        body - the body
        Returns:
        T
      • getFixture

        E getFixture​(CollisionBody<?> body)
        Returns the fixture for the body that matches the given body.

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

        Parameters:
        body - the body
        Returns:
        E
      • 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
      • getOtherFixture

        E getOtherFixture​(CollisionBody<?> body)
        Returns the fixture for 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:
        E