Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coldet

Collision detection library written in golang.

Inspirations

Learnopengl tutorial about the 2D collision detection. Nehe tutorial about the collision detection. MDN tutorial about the 3D collision detection.

Options

  • AABB - AABB
  • Point - Sphere
  • Point - AABB
  • AABB - Sphere
  • Sphere - Sphere
  • Distance - It returns the distance of a given vector and the bo.
  • ClosestPoint - It returns the closest point of the bo to the given vector.

What is a Point?

It is a structure that holds only a position (x, y, z coordinates).

What is an AABB

Axis aligned bounding box. It holds its center position, and the lenght of the sides of the box (x, y, z coordinates, width, length, height).

What is a Sphere

It holds it's center point's position and the radius of the sphere (x, y, z coordinates, radius).

About

3D collision detection written in golang

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages