I’m making a local multiplayer game where there are an arbitrary number of players (so I can’t know in advance).
Let’s say that one player passes a ball to another as in basketball.
I have the problem that when the ball is created inside the player, as soon as it’s created it collides with its creator (note: it has to be inside the player because it’s not really a basketball game, that’s just for a simple visualization).
I need that the ball ignores the player that creates it in the first place, but not the other players (so they can receive the ball) and not the creator after another player has touch it or some time has passed (in the case that the player shoots the ball up to the sky and the ball returns to him).
All the solutions I’ve seen say to use layers and masks but I can’t because all the players “live” in the same layer (players), so the ball ends up ignoring all the players
How can I do this?
Thank you very much!