Skip to content

v1.0.1 World implementation

Compare
Choose a tag to compare
@KleeSup KleeSup released this 22 Oct 02:35
· 10 commits to main since this release

With version 1.0.1 world implementation is now added!

You can create a SimpleCollisionWorld<> and then add custom AABB bodies to it.
These can be moved via SimpleCollisionWorld#update(aabb,displacement) or SimpleCollisionWorld#forceUpdate(aabb,goalX,goalY).
Furthermore, it is possible to only simulate a movement with SimpleCollisionWorld#simulate(aabb,displacement). Both update and simulate return a CollisionResponse object with detailed information of each collision that occurred.