Skip to content
RED SAGSkills
easyGame Developer interview question

How does collision detection work in a game engine, and what is the difference between a collider and a trigger?

What the interviewer wants to hear

  • Colliders are simple shapes like boxes, spheres and capsules
  • Broad phase finds possible pairs, narrow phase checks exact overlap
  • Collider creates a physical response; trigger only reports overlap
  • Layers and collision matrices filter what collides
  • Fast objects may need continuous collision detection

Model answer

Game engines usually do not test collisions against the detailed mesh. Instead, objects have simple collider shapes such as boxes, spheres and capsules, or a simplified mesh. The physics engine first does a broad phase, using bounding boxes and spatial structures to find pairs that might touch, then a narrow phase that checks exact overlap and contact points. A normal collider makes objects physically collide, so they bounce or stop. A trigger only reports that something entered or left its area, with no physical response, which is perfect for pickups, checkpoints and damage zones. I use layers and the collision matrix so, for example, bullets do not hit other bullets. For very fast objects like bullets I enable continuous collision detection or use raycasts so they do not pass through walls.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy Game Developer questions