Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Attributes | List of all members
box2d::Manifold::Point Struct Reference

Point data for a manifold. More...

#include <Manifold.hpp>

Public Attributes

Length2D localPoint
 Local point. More...
 
ContactFeature contactFeature
 Contact feature. More...
 
Momentum normalImpulse = 0
 Normal impulse. More...
 
Momentum tangentImpulse = 0
 Tangent impulse. More...
 

Detailed Description

Point data for a manifold.

This is a contact point belonging to a contact manifold. It holds details related to the geometry and dynamics of the contact points.

Note
The impulses are used for internal caching and may not provide reliable contact forces especially for high speed collisions.
This structure is at least 20-bytes large.

Member Data Documentation

◆ contactFeature

ContactFeature box2d::Manifold::Point::contactFeature

Contact feature.

Uniquely identifies a contact point between two shapes - A and B.

Note
This field is 4-bytes.
See also
GetPointStates.

◆ localPoint

Length2D box2d::Manifold::Point::localPoint

Local point.

Usage depends on manifold type.

Note
For circles type manifolds, this is the local center of circle B.
For face-A type manifolds, this is the local center of "cirlce" B or a clip point of shape B. It is also the point at which impulse forces should be relatively applied for position resolution.
For face-B type manifolds, this is the local center of "circle" A or a clip point of shape A. It is also the point at which impulse forces should be relatively applied for position resolution.
8-bytes.

◆ normalImpulse

Momentum box2d::Manifold::Point::normalImpulse = 0

Normal impulse.

This is the non-penetration impulse.

Note
This is only used for velocity constraint resolution.
4-bytes.

◆ tangentImpulse

Momentum box2d::Manifold::Point::tangentImpulse = 0

Tangent impulse.

This is the friction impulse.

Note
This is only used for velocity constraint resolution.
4-bytes.

The documentation for this struct was generated from the following file: