ManifoldType enum

A manifold for two touching convex shapes. Forge2D supports multiple types of contact:

  • clip point versus plane with radius
  • point versus point with radius (circles)

The local point usage depends on the manifold type:

  • e_circles: the local center of circleA
  • e_faceA: the center of faceA
  • e_faceB: the center of faceB

Similarly the local normal usage:

  • e_circles: not used
  • e_faceA: the normal on polygonA
  • e_faceB: the normal on polygonB

We store contacts in this way so that position correction can account for movement, which is critical for continuous physics. All contact scenarios must be expressed in one of these types. This structure is stored across time steps, so we keep it small.

Inheritance

Values

circles → const ManifoldType
faceA → const ManifoldType
faceB → const ManifoldType

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ManifoldType>
A constant List of the values in this enum, in order of their declaration.