src/supertux/collision_hit.hpp File Reference

#include "math/vector.hpp"

Go to the source code of this file.

Classes

class  CollisionHit
 This class collects data about a collision. More...

Enumerations

enum  HitResponse { ABORT_MOVE = 0, CONTINUE, FORCE_MOVE }
 Used as return value for the collision functions, to indicate how the collision should be handled. More...


Enumeration Type Documentation

enum HitResponse

Used as return value for the collision functions, to indicate how the collision should be handled.

Enumerator:
ABORT_MOVE  Call collision() but do no collision handling.
CONTINUE  move object out of collision and check for collisions again if this happens too often then the move will just be aborted (normal physics)
FORCE_MOVE  Treat object as kinematic, with infinite inertia/mass pushing other (CONTINUE) objects out of the way.

Definition at line 26 of file collision_hit.hpp.

00027 {
00028   // Dynamic collision responses
00029 
00031   ABORT_MOVE = 0,
00035   CONTINUE,
00038   FORCE_MOVE
00039 };


Generated on Mon Jun 9 03:38:26 2014 for SuperTux by  doxygen 1.5.1