Function used to provide collision resolver with walkable tile status.
Collision resolver that prevents all movement if a collision is detected.
The Sprite entity to check.
The TileMap to use for collisions.
Desired movement in the X axis.
Desired movement in the Y axis.
Collision resolver that only prevents invalid movements.
The Sprite entity to check.
The TileMap to use for collision.
Desired movement in the X axis.
Desired movement in the Y axis.
Callback function to test for walkable tiles.
The Resolvers module provides two different ways to resolve a collision.
When using
stopMovement, any collision is resolved with a Vec which represents zero movement.The
wallSlideresolver is more detailed, and returns a Resolution which contains offsets needed to prevent overlap as well as a Hits object with information on what directions collisions were detected.