ackb2d 0.9
3D Gamestudio Box 2d Wraper

b2WorldManifold.h File Reference

Go to the source code of this file.

Functions

b2WorldManifoldb2WorldManifold_Create ()
 Create.
void b2WorldManifold_Destroy (b2WorldManifold *worldManifold)
 Destroy b2WorldManifold.
void b2WorldManifold_Initialize (b2WorldManifold *worldManifold, const b2Manifold *manifold, const b2Transform *xfA, var radiusA, const b2Transform *xfB, var 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.
void b2WorldManifold_SetNormal (b2WorldManifold *worldManifold, const VECTOR *normal)
 Set world manifold normal.
void b2WorldManifold_GetNormal (b2WorldManifold *worldManifold, VECTOR *outNormal)
 Get world manifold normal.
void b2WorldManifold_SetPoints (b2WorldManifold *worldManifold, const VECTOR *points)
 Set all b2Manifold points.
void b2WorldManifold_GetPoints (b2WorldManifold *worldManifold, VECTOR *outPoints)
 Get all b2Manifold points.
var b2WorldManifold_SetPoint (b2WorldManifold *worldManifold, const VECTOR *point, var index)
 Set b2Manifold point at index.
var b2WorldManifold_GetPoint (b2WorldManifold *worldManifold, VECTOR *outPoint, var index)
 Get b2Manifold point at index.

Function Documentation

b2WorldManifold* b2WorldManifold_Create ( )

Create.

void b2WorldManifold_Destroy ( b2WorldManifold worldManifold)

Destroy b2WorldManifold.

void b2WorldManifold_GetNormal ( b2WorldManifold worldManifold,
VECTOR *  outNormal 
)

Get world manifold normal.

world vector pointing from A to B

Parameters:
worldManifoldThe world manifold
outNormalA preinitialized vector to receive the value
var b2WorldManifold_GetPoint ( b2WorldManifold worldManifold,
VECTOR *  outPoint,
var  index 
)

Get b2Manifold point at index.

world contact point (point of intersection)

Parameters:
manifoldThe b2Manifold instance
outPointA preintialized VECTOR to receive the result
indexPoint index
Returns:
1 on success and 0 on failure
void b2WorldManifold_GetPoints ( b2WorldManifold worldManifold,
VECTOR *  outPoints 
)

Get all b2Manifold points.

world contact point (point of intersection)

Parameters:
manifoldThe b2Manifold instance
outPointsAn array of 2 Vectors to receive the result
void b2WorldManifold_Initialize ( b2WorldManifold worldManifold,
const b2Manifold manifold,
const b2Transform xfA,
var  radiusA,
const b2Transform xfB,
var  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.

void b2WorldManifold_SetNormal ( b2WorldManifold worldManifold,
const VECTOR *  normal 
)

Set world manifold normal.

world vector pointing from A to B

Parameters:
worldManifoldThe world manifold
normalThe new normal value
var b2WorldManifold_SetPoint ( b2WorldManifold worldManifold,
const VECTOR *  point,
var  index 
)

Set b2Manifold point at index.

world contact point (point of intersection)

Parameters:
manifoldThe b2Manifold instance
pointA VECTOR containing the new value
indexPoint index
Returns:
1 on success and 0 on failure
void b2WorldManifold_SetPoints ( b2WorldManifold worldManifold,
const VECTOR *  points 
)

Set all b2Manifold points.

world contact point (point of intersection)

Parameters:
manifoldThe b2Manifold instance
pointsAn array of 2 vector containing the new values
 All Data Structures Files Functions Variables Typedefs Defines