All Projects → Tarliton → collision2d

Tarliton / collision2d

Licence: MIT License
A simple Go library for performing 2D collision detection based on sat-js

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to collision2d

SmartTrafficIntersection
Another AI toy project, of a traffic intersection controlled by a Reinforcement Learning AI agent to optimize traffic flow in an intersection of vehicles or pedestrians
Stars: ✭ 30 (-53.12%)
Mutual labels:  collision, collision-detection
SharpMath2
2D math / geometry collision library for C#, compatable with monogame.
Stars: ✭ 36 (-43.75%)
Mutual labels:  collision, 2d
Cute headers
Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games
Stars: ✭ 3,274 (+5015.63%)
Mutual labels:  collision, collision-detection
Intersects
a simple collection of 2d collision/intersects functions. Supports points, circles, ellipses, lines, axis-aligned boxes, and polygons
Stars: ✭ 270 (+321.88%)
Mutual labels:  collision, 2d
DAABBCC
Dynamic AABB Tree native extension with Branch and Bound Algorithm for Defold Engine
Stars: ✭ 42 (-34.37%)
Mutual labels:  collision, collision-detection
Exengine
A C99 3D game engine
Stars: ✭ 391 (+510.94%)
Mutual labels:  collision, collision-detection
Awesome Collision Detection
😎 A curated list of awesome collision detection libraries and resources
Stars: ✭ 444 (+593.75%)
Mutual labels:  collision, collision-detection
Fcl
Flexible Collision Library
Stars: ✭ 701 (+995.31%)
Mutual labels:  collision, collision-detection
Spatial Collision Datastructures
Benchmark of various spatial data structures for collision detection.
Stars: ✭ 96 (+50%)
Mutual labels:  collision, collision-detection
Reactphysics3d
Open source C++ physics engine library in 3D
Stars: ✭ 730 (+1040.63%)
Mutual labels:  collision, collision-detection
intersection-wasm
Mesh-Mesh and Triangle-Triangle Intersection tests based on the algorithm by Tomas Akenine-Möller
Stars: ✭ 17 (-73.44%)
Mutual labels:  collision, collision-detection
exengine
A C99 3D game engine
Stars: ✭ 487 (+660.94%)
Mutual labels:  collision, collision-detection
LockstepCollision
A deterministic collision lib for lockstep
Stars: ✭ 51 (-20.31%)
Mutual labels:  collision, collision-detection
gridder
A Grid based 2D Graphics library
Stars: ✭ 51 (-20.31%)
Mutual labels:  2d
m3diaLib-CTR
A C++ library for easier homebrew development for the Nintendo 3DS
Stars: ✭ 39 (-39.06%)
Mutual labels:  2d
TriangleMeshDistance
Header only, single file, simple and efficient C++11 library to compute the signed distance function (SDF) to a triangle mesh
Stars: ✭ 55 (-14.06%)
Mutual labels:  collision-detection
that game engine
Source code for a game engine development series
Stars: ✭ 47 (-26.56%)
Mutual labels:  2d
vecti
A tiny TypeScript library for 2D vector math.
Stars: ✭ 14 (-78.12%)
Mutual labels:  2d
bridson
Poisson Disc Sampling in Python
Stars: ✭ 30 (-53.12%)
Mutual labels:  2d
glsl-rotate
GLSL rotation functions with matrices: 2D and 3D (with X/Y/Z convenience functions).
Stars: ✭ 54 (-15.62%)
Mutual labels:  2d

Collision2D

Build Status GoDoc Coverage Status Go Report Card

About

Collision2D is a simple Go library for performing collision detection (and projection-based collision response) of simple 2D shapes. It uses the Separating Axis Theorem. It was based on the JavaScript library SAT-js by jriecken.

It supports detecting collisions between:

  • Circles (using Voronoi Regions.)
  • Convex Polygons (and simple Axis-Aligned Boxes, which are of course, convex polygons.)

It also supports checking whether a point is inside a circle or polygon.

It's released under the MIT license.

To import in your Go project you can use:

`import "github.com/Tarliton/collision2d"`
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].