2D collision detection library for Go

bfc3678 examples/distance: Fix TimeOfImpact calculation

3 months ago

2ba08d6 Add *Simplex parameter to TimeOfImpact

3 months ago



Package collide implements 2D collision detection in Go.

This package implements collision detection only. Resolving collisions is not implemented.


import "git.sr.ht/~adnano/go-collide"


There are a few examples provided in the examples directory. To run an example:

go run examples/distance.go


Send patches and questions to ~adnano/go-collide-devel.

Subscribe to release announcements on ~adnano/go-collide-announce.


This library is heavily inspired by Erin Catto's Box2D.

The following resources explain the various algorithms used in this library.