v1.0.1 World implementation
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.