From 2b95f565e8b88841d20f79205ac600cc14e28458 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Sat, 2 Aug 2025 15:25:04 +0300 Subject: Added transparency to collider overlays - And some test objects into the scene --- src/physics.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/physics.c') diff --git a/src/physics.c b/src/physics.c index 048d65d..51e80f5 100644 --- a/src/physics.c +++ b/src/physics.c @@ -62,6 +62,10 @@ void DebugHighlights(const Entity* e) { return; Rectangle dstRect = GetPhysicsColliderGlobal(e); - DrawRectangle(dstRect.x, dstRect.y, dstRect.width, dstRect.height, e->physicsColliderColor); + + Color colliderDrawColor = e->physicsColliderColor; + colliderDrawColor.a = 170; + + DrawRectangle(dstRect.x, dstRect.y, dstRect.width, dstRect.height, colliderDrawColor); } #endif -- cgit v1.2.3