2D Physics and Collision Detection Flashcards
6 cards from real 2D Game Development practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 2D Physics and Collision Detection flashcards as text
Which collision detection method checks if the bounding boxes of two objects overlap?
Answer: AABB (Axis-Aligned Bounding Box)
AABB collision detection checks whether the rectangular boundaries of two objects overlap along both axes.
What is the purpose of a physics timestep in 2D games?
Answer: To ensure consistent physics simulation regardless of frame rate
A fixed physics timestep ensures that physics calculations produce consistent results independent of how fast the game renders frames.
What does 'restitution' control in a 2D physics engine?
Answer: Bounciness after a collision
Restitution (coefficient of restitution) determines how much kinetic energy is preserved after a collision, controlling bounciness.
Which data structure is commonly used to optimize broad-phase collision detection?
Answer: Spatial hash grid
A spatial hash grid partitions space into cells so only nearby objects need to be checked for collisions, reducing comparisons.
What is a 'trigger' collider in 2D game development?
Answer: A collider that detects overlap without physical response
A trigger collider detects when objects enter its area but does not cause a physical collision response.
What is 'tunneling' in 2D physics?
Answer: An object passing through another due to high velocity
Tunneling occurs when a fast-moving object moves so far in one frame that it passes completely through a thin collider without detection.