Module org.dyn4j

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

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

    public interface BatchBroadphaseDetector<E extends Collidable<T>,​T extends Fixture>
    extends BroadphaseDetector<E,​T>
    Represents a broad-phase collision detection algorithm that also can perform a batch update operation that is more efficient than updating all the collidable 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:
    3.4.0
    Author:
    Manolis Tsamis