I'm making a very basic Billiards game as my first Godot project. I've managed to create a basic play area of "table", "pockets", and "cushions" and the various balls all bounce around as expected.
The issue I'm facing is when I try to design some functionality around the "pocketing" of the balls.
i.e. when a Ball collides with a Pocket, it should momentarily disappear from the screen. Then, once all of the balls have stopped moving, any pocketed balls should be replaced on their starting position.
The way that I've coded it up does not work, however, because the Ball appears to be re-positioned (for what seems to be a single frame) to the correct spot, it instantly hops back to the Pocket in which is had been "sunk".
I believe this is probably related to the ordering of physics events, and I need to defer setting the Position property until after all the "physics" has happened but I feel like I may be going about this the wrong way to begin with.
Any help would be much appreciated.