-
- All Known Implementing Classes:
ClippingManifoldSolver
public interface ManifoldSolver
Finds a contactManifold
for two givenConvex
Shape
s that are in collision.A contact
Manifold
is a collection of contact points for a collision. For two dimensions, this will never be more than two contacts.A
ManifoldSolver
relies on thePenetration
object returned from aNarrowphaseDetector
to determine the contactManifold
. TheManifold
s have ids to facilitate caching of contact information.It's possible that no contact points are returned, in which case the
getManifold(Penetration, Convex, Transform, Convex, Transform, Manifold)
method will return false.- Since:
- 1.0.0
- Version:
- 3.2.0
- Author:
- William Bittle
- See Also:
Manifold
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getManifold(Penetration penetration, Convex convex1, Transform transform1, Convex convex2, Transform transform2, Manifold manifold)
-
-
-
Method Detail
-
getManifold
boolean getManifold(Penetration penetration, Convex convex1, Transform transform1, Convex convex2, Transform transform2, Manifold manifold)
Returns true if there exists a valid contact manifold between the twoConvex
Shape
s.When returning true, this method fills in the
Manifold
object with the points, depth, and normal.The given
Manifold
object will be cleared using theManifold.clear()
method. This allows reuse of theManifold
if desired.The
Penetration
object will be left unchanged by this method.
-
-