From 78cfb78a5a52724322b541fa56744f6dcecef82c Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Tue, 4 Aug 2026 23:37:21 +0200 Subject: [PATCH] Renamed collision function. --- src/components/physics_system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/physics_system.c b/src/components/physics_system.c index 1f704e7..e48bd6e 100644 --- a/src/components/physics_system.c +++ b/src/components/physics_system.c @@ -34,7 +34,7 @@ int physics_system_init(component_t *component) // Only for this file // Args : physics_system_data_t *system_data, size_t entity_id -static inline int action_check_hitboxes(elem_t *elem, va_list args) +static inline int action_detect_solve_entities_collision(elem_t *elem, va_list args) { const entity_t *target_entity = elem->data; physics_system_data_t *system_data = va_arg(args, physics_system_data_t *); @@ -103,7 +103,7 @@ int physics_system_update(component_t *component) system_data->velocity.x = lerp(system_data->velocity.x, system_data->target_velocity.x, system_data->smoothing_factor); system_data->velocity.y = lerp(system_data->velocity.y, system_data->target_velocity.y, system_data->smoothing_factor); - linked_list_for_each(&game.entity_manager.entities, action_check_hitboxes, system_data, component->entity->id); + linked_list_for_each(&game.entity_manager.entities, action_detect_solve_entities_collision, system_data, component->entity->id); transform_component_data->bounds.x += system_data->velocity.x * system_data->speed * (float)game.delta_time_ms / 1000.0f; transform_component_data->bounds.y += system_data->velocity.y * system_data->speed * (float)game.delta_time_ms / 1000.0f;