Click or drag to resize

Manifold Structure

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) The local point usage depends on the manifold type: - ShapeType.Circles: the local center of circleA - SeparationFunction.FaceA: the center of faceA - SeparationFunction.FaceB: the center of faceB Similarly the local normal usage: - ShapeType.Circles: not used - SeparationFunction.FaceA: the normal on polygonA - SeparationFunction.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.

Namespace:  Internal.tainicom.Aether.Physics2D.Collision
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public struct Manifold

The Manifold type exposes the following members.

Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldLocalNormal
Not use for Type.SeparationFunction.Points
Public fieldLocalPoint
Usage depends on manifold type
Public fieldPointCount
The number of manifold points
Public fieldPoints
The points of contact
Public fieldType
Top
Extension Methods
See Also