Polycode::PhysicsScreenEvent Class Reference

Event sent out by the PhysicsScreen class when collisions begin and end. More...

List of all members.

Public Member Functions

ScreenEntity * getFirstEntity ()
 First colliding entity.
ScreenEntity * getSecondEntity ()
 Second colliding entity.

Public Attributes

ScreenEntity * entity1
 First colliding entity.
ScreenEntity * entity2
 Second colliding entity.
Vector2 localCollisionNormal
 Local collision normal.
Vector2 worldCollisionNormal
 Collision normal in world space.
Vector2 localCollisionPoint
 Collision point in local space.
Vector2 worldCollisionPoint
 Collision point in world space.
Number impactStrength
 Strength of the collision impact.
Number frictionStrength
 Friction strength of the impact.

Static Public Attributes

static const int EVENT_NEW_SHAPE_COLLISION = 0
 Event sent out when a collision begins.
static const int EVENT_END_SHAPE_COLLISION = 1
 Event sent out when a collision ends.
static const int EVENT_SOLVE_SHAPE_COLLISION = 3
 Event sent out when a collision begins.

Detailed Description

Event sent out by the PhysicsScreen class when collisions begin and end.

Generated on Sat Aug 11 18:04:12 2012 for Physics2D by  doxygen 1.6.3