Public Member Functions | Public Attributes | List of all members
b2WorldManifold Struct Reference

This is used to compute the current state of a contact manifold. More...

#include <b2Collision.h>

Public Member Functions

void Initialize (const b2Manifold *manifold, const b2Transform &xfA, float32 radiusA, const b2Transform &xfB, float32 radiusB)
 

Public Attributes

b2Vec2 normal
 world vector pointing from A to B More...
 
b2Vec2 points [b2_maxManifoldPoints]
 world contact point (point of intersection) More...
 
float32 separations [b2_maxManifoldPoints]
 a negative value indicates overlap, in meters More...
 

Detailed Description

This is used to compute the current state of a contact manifold.

Definition at line 110 of file b2Collision.h.

Member Function Documentation

void b2WorldManifold::Initialize ( const b2Manifold manifold,
const b2Transform xfA,
float32  radiusA,
const b2Transform xfB,
float32  radiusB 
)

Evaluate the manifold with supplied transforms. This assumes modest motion from the original state. This does not change the point count, impulses, etc. The radii must come from the shapes that generated the manifold.

Definition at line 22 of file b2Collision.cpp.

Member Data Documentation

b2Vec2 b2WorldManifold::normal

world vector pointing from A to B

Definition at line 120 of file b2Collision.h.

b2Vec2 b2WorldManifold::points[b2_maxManifoldPoints]

world contact point (point of intersection)

Definition at line 121 of file b2Collision.h.

float32 b2WorldManifold::separations[b2_maxManifoldPoints]

a negative value indicates overlap, in meters

Definition at line 122 of file b2Collision.h.


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


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:41