Public Attributes | List of all members
b2ManifoldPoint Struct Reference

#include <b2_collision.h>

Public Attributes

b2ContactID id
 uniquely identifies a contact point between two shapes More...
 
b2Vec2 localPoint
 usage depends on manifold type More...
 
float normalImpulse
 the non-penetration impulse More...
 
float tangentImpulse
 the friction impulse More...
 

Detailed Description

A manifold point is a contact point belonging to a contact manifold. It holds details related to the geometry and dynamics of the contact points. The local point usage depends on the manifold type: -e_circles: the local center of circleB -e_faceA: the local center of cirlceB or the clip point of polygonB -e_faceB: the clip point of polygonA This structure is stored across time steps, so we keep it small. Note: the impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions.

Definition at line 75 of file b2_collision.h.

Member Data Documentation

◆ id

b2ContactID b2ManifoldPoint::id

uniquely identifies a contact point between two shapes

Definition at line 80 of file b2_collision.h.

◆ localPoint

b2Vec2 b2ManifoldPoint::localPoint

usage depends on manifold type

Definition at line 77 of file b2_collision.h.

◆ normalImpulse

float b2ManifoldPoint::normalImpulse

the non-penetration impulse

Definition at line 78 of file b2_collision.h.

◆ tangentImpulse

float b2ManifoldPoint::tangentImpulse

the friction impulse

Definition at line 79 of file b2_collision.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22