42 FloatRect rect1 = *hitbox1.currentHitbox();
56 rect1.
x += movement.v.x;
57 rect1.
y += movement.v.y;
62 rect2.
x += movement.v.x;
63 rect2.
x += movement.v.y;
void checkCollision(SceneObject &object1, SceneObject &object2)
const FloatRect * currentHitbox() const
T y
Top coordinate of the rectangle.
T x
Left coordinate of the rectangle.
bool intersects(const Rect< T > &rect) const
Check the intersection between two rectangles.
virtual bool inCollision(SceneObject &object1, SceneObject &object2)