diff options
author | BoredGuy <osome3717@gmail.com> | 2025-08-02 15:25:04 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2025-08-02 15:25:04 +0300 |
commit | 2b95f565e8b88841d20f79205ac600cc14e28458 (patch) | |
tree | e18a02531ee44d5c9c5531b1c5e54a7baa901d5f /src/physics.c | |
parent | 2c2910c33c71878c8fb8083c1fbc1a2d282a979b (diff) |
Added transparency to collider overlays
- And some test objects into the scene
Diffstat (limited to 'src/physics.c')
-rw-r--r-- | src/physics.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |