collision2d

A simple Go library for performing 2D collision detection based on sat-js

Github星跟踪图

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"`

主要指标

概览
名称与所有者Tarliton/collision2d
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2016-02-23 22:01:38
推送于2023-04-16 21:40:11
最后一次提交2020-06-14 02:27:45
发布数1
最新版本名称v0.1.0 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数73
关注者数2
派生数13
提交数38
已启用问题?
问题数2
打开的问题数2
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?