phoenix::PhCollisionData Struct Reference

Collision data. More...

#include <PhPolygonCollisionObject.h>

List of all members.

Public Attributes

bool collision
 True if a collision occured.
PhCollisionObject objA
 The first object.
PhCollisionObject objB
 The second object.
PhVector2d sep
 Normal of collision.
float sepmag
 Magnitude of separation.


Detailed Description

Collision data.

This struct provides information about a collision.


Member Data Documentation

PhCollisionObject phoenix::PhCollisionData::objA

The first object.

This is the first object involved in collisions. This will always be the object whose callback was given this data.

See also:
objB

PhCollisionObject phoenix::PhCollisionData::objB

The second object.

This is always the object that you collided with.

See also:
objA

PhVector2d phoenix::PhCollisionData::sep

Normal of collision.

This is the normal of the collision. Along with sepmag it can be used to separate this object from this other by adding (sep*sepmag) to the polygon's position.

See also:
sepmag

float phoenix::PhCollisionData::sepmag

Magnitude of separation.

This stores the magnitude of the vector needed to separate the polygons. Along with sep it can be used to separate the objects.

See also:
sep


The documentation for this struct was generated from the following file:
Generated on Tue Nov 20 21:59:24 2007 for Phoenix by  doxygen 1.5.4