Skip to content

An implementation of QuadTree for collision detection in 2-dimension in C++

Notifications You must be signed in to change notification settings

2565904536/QuadTree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuadTree2D – A collision detection algorithm

A simple collision detection method, brute force algorithm, that checks every pair of objects in a scene, can be highly computationally expensive, especially when dealing with a large number of objects. This can lead to significant processing overheads, resulting in decreased application performance and responsiveness. As a consequence, there is a critical need for more efficient and optimized collision detection algorithm in 2D environments.

This repository focuses on implementing a quad tree algorithm for 2D collision detection. A quad tree is a tree data structure in which each internal node has exactly four children: northwest, northeast, southwest, and southeast. It's particularly well-suited for spatial partitioning tasks, as it recursively divides space into quadrants, allowing for efficient querying of objects within specific regions. The algorithm reduces the number of pairwise collision checks required, making it highly efficient for scenarios involving a large number of objects.

About

An implementation of QuadTree for collision detection in 2-dimension in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.1%
  • CMake 0.9%