Pixel perfect collision with paths (Android)
- by keysersoze
Hi I'm writing a game and I'm trying to do some pixel perfect collisions with paths. The player's character has a bitmask which looks for example like this:
Currenly my code that handles player's collision with path looks like this:
private boolean isTerrainCollisionDetected() {
if(collisionRegion.op(player.getBounds(),…