Package org.jbox2d.collision
Class Manifold
java.lang.Object
org.jbox2d.collision.Manifold
public class Manifold
extends java.lang.Object
A manifold for two touching convex shapes. Box2D supports multiple types of contact:
- clip point versus plane with radius
- point versus point with radius (circles)
- e_circles: the local center of circleA
- e_faceA: the center of faceA
- e_faceB: the center of faceB
- e_circles: not used
- e_faceA: the normal on polygonA
- e_faceB: the normal on polygonB
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Vec2
not use for Type::e_pointsfinal Vec2
usage depends on manifold typeint
The number of manifold points.final ManifoldPoint[]
The points of contact. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
points
The points of contact. -
localNormal
not use for Type::e_points -
localPoint
usage depends on manifold type -
type
-
pointCount
public int pointCountThe number of manifold points.
-
-
Constructor Details
-
Manifold
public Manifold()creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints. -
Manifold
Creates this manifold as a copy of the other- Parameters:
other
-
-
-
Method Details
-
set
copies this manifold from the given one- Parameters:
cp
- manifold to copy from
-