You're absolutely right! This hybrid approach is actually a very common and smart design pattern in game development. It's used in many successful games because it balances computational efficiency with gameplay fairness.
Why This Works So Well:
Physics (Rectangles)
- Fast collision detection for movement, walls, platforms
- Predictable sliding along surfaces
- Easy spatial partitioning (quadtrees, grids)
- Simple push-out calculations for overlaps
Combat (Circles)
- Fairer for players - no cheap hits on "empty corners"
- Better matches visual sprites (especially for bullets, explosions, characters)
- More forgiving and consistent feeling
- Rotation-independent (crucial for spinning projectiles)
Real-World Examples:
Touhou Project (Bullet Hell games)
- Player has a tiny circular hitbox (often just a few pixels) for bullets
- But rectangular collision for walls and movement
- This creates the iconic "grazing" mechanic where bullets can overlap the sprite but miss the actual hitbox
Fighting Games (Street Fighter, etc.)
- Hurtboxes (where you can be hit) are often capsules/circles matching body parts
- Pushboxes (physics collision) are rectangles to prevent characters overlapping
- Creates fair, predictable combat while maintaining solid physics
Hollow Knight
- The Knight has a rectangular physics box for platforming
- But attack hitboxes and many enemy hurtboxes use circles/capsules
- Results in tight, fair combat that "feels right"
Implementation Pattern:
Entity {
// Physics collision
Rectangle physicsBox; // For movement, walls, platforms
// Combat collision
Circle hurtBox; // Where I can be damaged
Circle hitBox; // Where my attacks land
}
Design Benefits:
- Visual Clarity - Players learn that "if it looks like it'll hit me, it will"
- Forgiveness - Slightly clipping a corner doesn't unfairly damage the player
- Consistency - Circular bullets behave the same regardless of angle
- Polish - The game feels more refined and fair
Pro Tips:
- Show hitboxes in practice/training modes - Many games let players see the actual collision shapes
- Keep hitboxes slightly smaller than sprites - The "benefit of the doubt" should go to the player
- Use different shapes for different attacks - Swords might be rectangles, explosions circles
- Consider multiple hitboxes - A character might have separate head/body/leg hurtboxes
This approach is essentially giving you the best of both worlds: efficient physics that works well with tile-based levels and walls, plus combat that feels fair and smooth. It's one of those "invisible" design decisions that players don't consciously notice but makes games feel significantly better to play.
Your instinct about this improving game feel is spot-on - it's a technique used by many of the most polished action games out there!