src/supertux/collision.hpp File Reference

#include "supertux/collision_hit.hpp"
#include <limits>
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  collision

Classes

class  collision::Constraints

Functions

bool collision::intersects (const Rectf &r1, const Rectf &r2)
 checks if 2 rectangle intersect each other
bool collision::rectangle_aatriangle (Constraints *constraints, const Rectf &rect, const AATriangle &triangle, const Vector &addl_ground_movement=Vector(0, 0))
 does collision detection between a rectangle and an axis aligned triangle Returns true in case of a collision and fills in the hit structure then.
void collision::set_rectangle_rectangle_constraints (Constraints *constraints, const Rectf &r1, const Rectf &r2, const Vector &addl_ground_movement)


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