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

#include <b2Collision.h>

Public Types

enum  Type { e_circles, e_faceA, e_faceB }
 

Public Attributes

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

Detailed Description

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

Member Enumeration Documentation

enum Type
Enumerator
e_circles 
e_faceA 
e_faceB 

Member Data Documentation

b2Vec2 localNormal

not use for Type::e_points

b2Vec2 localPoint

usage depends on manifold type

int32 pointCount

the number of manifold points

b2ManifoldPoint points[b2_maxManifoldPoints]

the points of contact

Type type

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