63std::ostream&
operator<<(std::ostream& os,
const Manifold& manifold);
Contains the Vector2 struct.
Definition BroadPhaseGrid.hpp:18
std::ostream & operator<<(std::ostream &os, const Manifold &manifold)
Definition Manifold.cpp:28
Definition Manifold.hpp:20
Manifold Swaped() const
Definition Manifold.cpp:19
Vector2 a
Point a of the manifold.
Definition Manifold.hpp:28
Vector2 b
Point b of the manifold.
Definition Manifold.hpp:33
static Manifold Empty()
Gets an empty manifold with no collisions.
Definition Manifold.hpp:55
float depth
The depth of the collision. Can be seen as the magnitude of the normal.
Definition Manifold.hpp:44
Manifold()
Definition Manifold.cpp:13
bool hasCollision
Boolean indicating whether a collision happened.
Definition Manifold.hpp:49
Vector2 normal
The normal of the manifold. Represents the direction in which the collision should be solved.
Definition Manifold.hpp:39
A struct representing a 2D Vector.
Definition Vector2.hpp:21