I'm really kinda stuck on this problem i'm having.
I have multiple players, but they should not collide with each other, so i gave them a groupIndex:
playerShapeDef.filter.groupIndex = -1;
But i also have bullets, but the player who shot a bullet can't collide with them, only other players should collide.
I know which player is shooting: if(player.ownPlayer) { // i'm shooting }
But i can't figure out how to use the filter.maskBits property to make this work.
I hope somebody can help me out on this one.
I have multiple players, but they should not collide with each other, so i gave them a groupIndex:
playerShapeDef.filter.groupIndex = -1;
But i also have bullets, but the player who shot a bullet can't collide with them, only other players should collide.
I know which player is shooting: if(player.ownPlayer) { // i'm shooting }
But i can't figure out how to use the filter.maskBits property to make this work.
I hope somebody can help me out on this one.