- Object
-
- PhysicsBodySweptAABBProducer<T>
-
- Type Parameters:
T
- theCollisionBody
type
- All Implemented Interfaces:
AABBProducer<T>
public final class PhysicsBodySweptAABBProducer<T extends PhysicsBody> extends Object implements AABBProducer<T>
AABBProducer
specifically forCollisionBody
s producing sweptAABB
s via thePhysicsBody.computeSweptAABB(AABB)
methods.This class produces a tight fitting AABB around the
CollisionBody
using it's previous and current transform.- Since:
- 4.1.0
- Version:
- 4.1.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description PhysicsBodySweptAABBProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AABB
compute(T object)
Returns a new AABB for the given object.void
compute(T object, AABB result)
Updates the given AABB with the AABB for the given object.
-
-
-
Method Detail
-
compute
public AABB compute(T object)
Description copied from interface:AABBProducer
Returns a new AABB for the given object.- Specified by:
compute
in interfaceAABBProducer<T extends PhysicsBody>
- Parameters:
object
- the object- Returns:
AABB
-
compute
public void compute(T object, AABB result)
Description copied from interface:AABBProducer
Updates the given AABB with the AABB for the given object.- Specified by:
compute
in interfaceAABBProducer<T extends PhysicsBody>
- Parameters:
object
- the objectresult
- the AABB to update
-
-