Remove colliderAllocated flag

This commit is contained in:
Yousef Khadadeh 2025-07-28 14:25:28 +03:00
parent 0a75b0ada3
commit eb9db31d31
18 changed files with 44 additions and 117 deletions

View file

@ -106,11 +106,11 @@ void DrawTextBox::initialize_draw_data(DrawingProgram& drawP) {
init_text_box(drawP);
}
bool DrawTextBox::collides_within_coords(const SCollision::ColliderCollection<float>& checkAgainst, bool colliderAllocated) {
bool DrawTextBox::collides_within_coords(const SCollision::ColliderCollection<float>& checkAgainst) {
return collisionTree.is_collide(checkAgainst);
}
void DrawTextBox::create_collider(bool colliderAllocated) {
void DrawTextBox::create_collider() {
using namespace SCollision;
ColliderCollection<float> strokeObjects;
std::array<Vector2f, 4> newT = triangle_from_rect_points(d.p1, d.p2);
@ -121,12 +121,6 @@ void DrawTextBox::create_collider(bool colliderAllocated) {
calculate_world_bounds();
}
void DrawTextBox::free_collider() {
}
void DrawTextBox::allocate_collider() {
}
SCollision::AABB<float> DrawTextBox::get_obj_coord_bounds() const {
return collisionTree.objects.bounds;
}