Skip to content

Collision detection

Chuck Walbourn edited this page Jul 15, 2015 · 17 revisions

This lesson covers simple collision detection using rectangles, spheres, and boxes.

Setup

First create a new project using the instructions from the first two lessons: The basic game loop and Adding the DirectX Tool Kit which we will use for this lesson.

2D collision detection

UNDER CONSTRUCTION

3D collision detection

UNDER CONSTRUCTION

Next lesson: Picking

Further reading

DirectXMath Programmer's Reference

For Use

  • Universal Windows Platform apps
  • Windows desktop apps
  • Windows 11
  • Windows 10
  • Windows 8.1
  • Xbox One

Architecture

  • x86
  • x64
  • ARM64

For Development

  • Visual Studio 2022
  • Visual Studio 2019 (16.11)
  • clang/LLVM v12 - v19
  • MinGW 12.2, 13.2
  • CMake 3.20

Related Projects

DirectX Tool Kit for DirectX 12

DirectXMesh

DirectXTex

DirectXMath

Win2D

Tools

Test Suite

Model Viewer

Content Exporter

DxCapsViewer

Clone this wiki locally