Module org.dyn4j
Package org.dyn4j.collision.broadphase
Interface BatchBroadphaseDetector<T extends CollisionBody<E>,E extends Fixture>
-
- Type Parameters:
T
- theCollisionBody
typeE
- theFixture
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
-
-
Field Summary
-
Fields inherited from interface BroadphaseDetector
DEFAULT_AABB_EXPANSION, DEFAULT_INITIAL_CAPACITY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
batchUpdate()
Deprecated.Updates all theFixture
s on all theCollisionBody
s that have been added to thisBroadphaseDetector
up until now.-
Methods inherited from interface BroadphaseDetector
add, add, clear, clearUpdates, contains, contains, contains, detect, detect, detect, detect, detect, detect, detect, detectIterator, detectIterator, getAABB, getAABB, getAABB, getAABBExpansion, isAABBExpansionSupported, isUpdated, isUpdated, isUpdated, isUpdateTrackingEnabled, isUpdateTrackingSupported, optimize, raycast, raycast, raycastIterator, remove, remove, remove, setAABBExpansion, setUpdated, setUpdated, setUpdateTrackingEnabled, size, supportsAABBExpansion, update, update
-
-
-
-
Method Detail
-
batchUpdate
void batchUpdate()
Deprecated.Updates all theFixture
s on all theCollisionBody
s that have been added to thisBroadphaseDetector
up until now.
-
-