Module org.dyn4j

Class CollisionBodyBroadphaseFilter<T extends CollisionBody<?>>

    • Constructor Detail

      • CollisionBodyBroadphaseFilter

        public CollisionBodyBroadphaseFilter()
    • Method Detail

      • isAllowed

        public boolean isAllowed​(T object1,
                                 T object2)
        Description copied from interface: BroadphaseFilter
        Returns true if the detection of the objects should proceed.
        Specified by:
        isAllowed in interface BroadphaseFilter<T extends CollisionBody<?>>
        Parameters:
        object1 - the first object
        object2 - the second object
        Returns:
        boolean