Package org.dyn4j.collision.manifold
Once a Penetration
object has been found between two
Convex
Shape
s using a
NarrowphaseDetector
, the next step is to find where the
collision occurred by using a ManifoldSolver
.
A ManifoldSolver
is an algorithm that generates a contact
Manifold
for a collision.
A contact Manifold
is an object representing the surface
or point where the two Convex
Shape
s are
in contact in a collision.
Manifold
s are currently one or two points and represent either
a single point or a straight edge respectively. Curved edges are not represented and instead use the single
point representation. In two dimensions the Manifold
will always
have two or less contact points.
A Manifold
is made up of one or more ManifoldPoint
s
which describe the information for each contact point in the collision. The ManifoldPoint
s
have a ManifoldPointId
associated with them to facilitate caching.
Only one implementation of the ManifoldSolver
is provided:
ClippingManifoldSolver
.
- Since:
- 1.0.0
- Version:
- 2.2.2
- Author:
- William Bittle
-
Interface Summary Interface Description ManifoldPointId Represents the identification of a specific contact point of aManifold
.ManifoldSolver -
Class Summary Class Description ClippingManifoldSolver Implementation of a Sutherland-Hodgman clippingManifoldSolver
algorithm.IndexedManifoldPointId Represents aManifoldPointId
that uses edge indexing.Manifold ManifoldPoint Represents a single contact point in a contactManifold
.