proxy.golang.org : github.com/hujun-open/hitbox
Package hitbox implement collision detection for 2D game, it detects collision between two rectangles, supports rotate and flip; it is based on separating axis theorem (SAT). Usage: create one or multiple HitBox to match the shape of your sprite, call HitBox.Collide to test collision with another HitBox. all exposed methods of HitBox is thread safe; Cordinate system: X increases going right, Y increases going down
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/hujun-open/hitbox
License: MIT
Latest release: over 4 years ago
First release: over 4 years ago
Namespace: github.com/hujun-open
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 9 days ago