src/supertux/collision.cpp File Reference

#include "supertux/collision.hpp"
#include <algorithm>
#include "math/aatriangle.hpp"
#include "math/rectf.hpp"

Go to the source code of this file.

Namespaces

namespace  collision

Functions

bool collision::intersects (const Rectf &r1, const Rectf &r2)
 checks if 2 rectangle intersect each other
void collision::makePlane (const Vector &p1, const Vector &p2, Vector &n, float &c)
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