Module org.dyn4j

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

  • Type Parameters:
    T - the CollisionBody type
    E - the Fixture type
    All Superinterfaces:
    BroadphaseDetector<T,​E>, Shiftable
    All Known Implementing Classes:
    LazyAABBTree

    @Deprecated
    public interface BatchBroadphaseDetector<T extends CollisionBody<E>,​E extends Fixture>
    extends BroadphaseDetector<T,​E>
    Deprecated.
    Deprecated in 4.0.0. No replacement needed.
    Represents a broad-phase collision detection algorithm that also can perform a batch update operation that is more efficient than updating all the bodies and fixtures one by one. This is initially added because it makes a very big difference for the implementation of LazyAABBTree, but it can be useful in other future broadphase detectors as well. When the World.java class uses a BatchBroadphaseDetector it will just call batchUpdate() once instead of updating each body seperately. Note that operations of batch addition or deletion did not seem important or commonplace, so the interface just provides a batch update method.
    Since:
    3.4.0
    Version:
    4.0.0
    Author:
    Manolis Tsamis