---
key: resource/collision-2d
type: resource
id: collision-2d
lang: en
title: 'MDN: 2D collision detection'
summary: 'Rectangles, circles, and separating broad-phase and narrow-phase checks.'
updatedAt: null
status: active
url: 'https://gamemechanics.pro/en/resources/#resource-collision-2d'
jsonUrl: 'https://gamemechanics.pro/api/v1/knowledge/en/resource/collision-2d.json'
markdownUrl: 'https://gamemechanics.pro/content/knowledge/en/resource/collision-2d.md'
aliases: []
tags:
  - article
  - ''
  - engineering
sourceIds:
  - source-7c0748c4a86f7409
sources:
  - id: source-7c0748c4a86f7409
    title: 'MDN: 2D collision detection'
    url: >-
      https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection
    verifiedAt: null
relations:
  - type: uses
    direction: incoming
    label: Used in these materials
    key: lesson/collision-basics
    title: Collision fundamentals
    url: 'https://gamemechanics.pro/en/lessons/collision-basics/'
    jsonUrl: 'https://gamemechanics.pro/api/v1/knowledge/en/lesson/collision-basics.json'
    markdownUrl: 'https://gamemechanics.pro/content/knowledge/en/lesson/collision-basics.md'
placements: []
supersededBy: []
attributes:
  kind: article
  format: null
  language: en
  authors: null
endsAt: null
provenance: >-
  Original editorial recommendation. The external material retains its author’s
  rights.
license: CC-BY-4.0
codeLicense: MIT
attribution: gamemechanics.pro contributors
---
# MDN: 2D collision detection

id: collision-2d
type: resource
key: resource/collision-2d
lang: en
status: active
url: https://gamemechanics.pro/en/resources/#resource-collision-2d

Rectangles, circles, and separating broad-phase and narrow-phase checks.

## When to use it

Rectangles, circles, and separating broad-phase and narrow-phase checks.

## Connected materials

- Used in these materials: [Collision fundamentals](https://gamemechanics.pro/en/lessons/collision-basics/) (key: lesson/collision-basics)

## Sources and provenance

Original editorial recommendation. The external material retains its author’s rights.

- [MDN: 2D collision detection](https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection) (id: source-7c0748c4a86f7409)

CC-BY-4.0 · gamemechanics.pro contributors
