I cannot find way or information about which CollisionCategory tilemap gets after being converted. Is there way to set collision category?
let map = this.scene.make.tilemap({ key: 'map' });
let tileset = map.addTilesetImage('tileset', 'tiles');
let platforms = map.createLayer('platforms', tileset, 0, 0);
platforms.setCollisionByExclusion([-1]);
let world = this.scene.matter.world.convertTilemapLayer(platforms);
Most of the categories collide with the tilemap but only category of projectiles 0b1000
doesn’t. I need everything to collide with tilemap
Projectile settings:
this.setCollisionCategory(0b1000);
//Collides with enemies and other projectiles
this.setCollidesWith([0b0010, 0b1000]);