#include <PhPolygonCollisionObject.h>
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. |
This struct provides information about a collision.
The first object.
This is the first object involved in collisions. This will always be the object whose callback was given this data.
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.
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.