Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.72 KB

File metadata and controls

33 lines (25 loc) · 1.72 KB

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