Glider is a collision library written in Go currently supporting AABB, spheres, rays and planes.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
AUTHORS
CHANGELOG.md
LICENSE
README.md
aabbox.go
aabbox_test.go
glider.go
obb.go
obb_test.go
plane.go
sphere.go
sphere_test.go

README.md

Glider v0.2.1

Glider is a simple collision library written in the Go programming language using axis aligned primitives and ray casts. Support for oriented primitives is still under development.

Installation

The library can be installed with the following command:

go get github.com/go-gl/mathgl/mgl32
go get github.com/tbogdala/glider

Current Features

  • Basic 2d box collision
  • AABB intersection vs AABB
  • AABB intersection vs Sphere
  • AABB intersection vs Ray
  • AABB intersection vs Plane
  • Sphere intersection tests vs AABB
  • Sphere intersection tests vs Sphere
  • Sphere intersection tests vs Ray
  • Sphere intersection tests vs Plane

Documentation

Currently, you'll have to use godoc to read the API documentation and check out the unit tests to figure out how to use the library.

It should be mostly easy to figure out, though.

LICENSE

Glider is released under the BSD license. See the LICENSE file for more details.