Page 1 of 1

Collision Masks

Posted: Wed Oct 19, 2016 9:50 pm
by Xavier630
Hi guys

I was wondering if anyone knows what the collision mask of gates is? Specifically how it allows players through but not biters?
Unless there is a hard-coded check for players nearby, the only way I can see it working is if players have a different collision mask to biters. There is no "enemy-layer" so it doesn't seem likely to me.

I'm asking because gates collide with water_tiles, which is really inconvenient for me, so I've tried changing their collision mask, but the settings I choose seem to allow both players and biters through or neither. Either I've messed up the gate collision mask, or perhaps the biter mask.

Thanks

Re: Collision Masks

Posted: Wed Oct 19, 2016 9:55 pm
by aubergine18
Some infos here from Rseding91: viewtopic.php?p=216793#p216793

Re: Collision Masks

Posted: Thu Oct 27, 2016 1:49 am
by Xavier630
Nothing on collision masks there, but nevertheless, good info on gates.

Thanks for the reply!

Re: Collision Masks

Posted: Thu Oct 27, 2016 2:28 am
by aubergine18
If you'd read the post, you'd see that gates aren't really based on collision masks. The trajectory of a player or train is what opens the gate. They don't work the same way as most other things.

Also, players are in the "player" force, biters are in the "enemy" force. So the game knows difference between friend and foe. I'm not sure what would happen if you built a gate with it's force set to "enemy" - maybe it would open for biters and close for players?