Public Types | Public Attributes | List of all members
b2Manifold Struct Reference

#include <b2_collision.h>

Public Types

enum  Type { e_circles, e_faceA, e_faceB }
 

Public Attributes

b2Vec2 localNormal
 not use for Type::e_points More...
 
b2Vec2 localPoint
 usage depends on manifold type More...
 
int32 pointCount
 the number of manifold points More...
 
b2ManifoldPoint points [b2_maxManifoldPoints]
 the points of contact More...
 
Type type
 

Detailed Description

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

Definition at line 99 of file b2_collision.h.

Member Enumeration Documentation

◆ Type

Enumerator
e_circles 
e_faceA 
e_faceB 

Definition at line 101 of file b2_collision.h.

Member Data Documentation

◆ localNormal

b2Vec2 b2Manifold::localNormal

not use for Type::e_points

Definition at line 109 of file b2_collision.h.

◆ localPoint

b2Vec2 b2Manifold::localPoint

usage depends on manifold type

Definition at line 110 of file b2_collision.h.

◆ pointCount

int32 b2Manifold::pointCount

the number of manifold points

Definition at line 112 of file b2_collision.h.

◆ points

the points of contact

Definition at line 108 of file b2_collision.h.

◆ type

Type b2Manifold::type

Definition at line 111 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