Skip to content

A simple c++ header-only single file that uses the Separating Axis Theorem (SAT) to detect collisions between two Oriented Bounding Boxes (OBB) and generate contact points for vertex-face collisions and edge-edge collisions.

License

Notifications You must be signed in to change notification settings

Xeanos7913/3D-Single-Header-Collision-Detection-and-contactpoint-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collision-Detection-and-contactpoint-generation

A simple C++ header-only single file that uses the Separating Axis Theorem (SAT) to detect collisions between two Oriented Bounding Boxes (OBB) and generate contact points for vertex-face collisions and edge-edge collisions.

Features

  • 3D: Handles 3D collision detection.
  • Single header: Easily expandable; just include the header.
  • Uses GLM: Utilizes the GLM library for mathematics.

Usage

  1. Include the header in your project.
  2. Create your OBBs (oriented bounding boxes).
  3. Use the provided functions to detect collisions and generate contact points.

Future plans

  1. Expand the algorithm to handle general convex hulls (point clouds of vertices).
  2. Implement one-shot Contact Manifold generation.

Demo videos

Some Statements

  • For rendering, I used my own game engine 'Calcium Engine', and it is not on github yet.
  • Still working on perfecting collision detection for my Calcium Engine.
  • In the near future, I might post Calcium Engine's source code on github, but it's very messy primarily because I'm not that good with C++.
  • I reccommend using some existing rendering engine for visualization.

References

About

A simple c++ header-only single file that uses the Separating Axis Theorem (SAT) to detect collisions between two Oriented Bounding Boxes (OBB) and generate contact points for vertex-face collisions and edge-edge collisions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages