-
- All Known Implementing Classes:
FallbackNarrowphaseDetector
,Gjk
,Sat
public interface NarrowphaseDetector
Represents an algorithm to detect whether twoConvex
Shape
s are penetrating/overlapping each other.If the
Convex
Shape
s are penetrating/overlapping one another, the algorithm must determine the penetration axis of minimum depth and the depth of the penetration.All
NarrowphaseDetector
s are only required to perform tests onConvex
Shape
s. Doing so allows for faster and simpler code. Concave objects can also be supported by performing a convex decomposition and testing the convex pieces individually.- Since:
- 1.0.0
- Version:
- 1.0.3
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
detect(Convex convex1, Transform transform1, Convex convex2, Transform transform2)
boolean
detect(Convex convex1, Transform transform1, Convex convex2, Transform transform2, Penetration penetration)
Returns true if the twoConvex
Shape
s intersect and fills thePenetration
object with the penetration vector and depth.
-
-
-
Method Detail
-
detect
boolean detect(Convex convex1, Transform transform1, Convex convex2, Transform transform2, Penetration penetration)
Returns true if the twoConvex
Shape
s intersect and fills thePenetration
object with the penetration vector and depth.
-
-