https://github.com/nmoncho/ascompositehitbox
Flashpunk oriented collision framework
https://github.com/nmoncho/ascompositehitbox
Last synced: 4 months ago
JSON representation
Flashpunk oriented collision framework
- Host: GitHub
- URL: https://github.com/nmoncho/ascompositehitbox
- Owner: nMoncho
- Created: 2015-03-31T01:18:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-09T17:32:53.000Z (about 10 years ago)
- Last Synced: 2025-01-10T15:49:32.538Z (5 months ago)
- Language: ActionScript
- Size: 691 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AsCompositeHitBox
Flashpunk oriented collision library
The goal this library is to be able to provide a better (or more flexible) collision system to Flashpunk.
We maintain Flashpunk as vanilla as posible and don'tAs is Flashpunk only provide a simple hitbox or a pixel mask to check for collisions, we want to provide a way to create hierachical bounding areas.
Our rationale is that collision could be handled as hierachical bounding areas (implemented as a tree) where leaves of the tree fire a collision, and top and intermediary levels are only intended for quickly filtering bounding areas that don't collide.
Currently we try to handle entity-entity and entity-type collisions, as the current version of Flashpunk does. But we also the collisions with the bounding areas introduced by this library in the same entry point.
## Roadmap
1. Point Inclusion (as is, we don't handle virtual coords for isPointInside check, also add tests for this).
2. Collision queries.
3. Spatial partitioning.
4. TBD.## TODO
1. Improve readme section.