changed colour of collision edge debug display

This commit is contained in:
Sara 2023-10-25 20:26:57 +02:00
parent 57ef426982
commit 043d93a6ae

View file

@ -90,7 +90,7 @@ void _internal_debug_draw_collision_edge(RigidBody* self, Contact* contact) {
Vector a = camera_world_to_pixel_point(&g_camera, left);
Vector b = camera_world_to_pixel_point(&g_camera, right);
Vector n = transform_direction(&g_camera.transform, contact->hit.normal);
SDL_SetRenderDrawColor(g_renderer, 255, 255, 255, 255);
SDL_SetRenderDrawColor(g_renderer, 255, 2, 255, 255);
SDL_RenderDrawLine(g_renderer, a.x, a.y, b.x, b.y);
a = camera_world_to_pixel_point(&g_camera, point);
b = vaddf(a, vmulff(n, 100.f));