Hi,
I am new to box 2d and im trying to make a pool game using box2d. I dont know how to make the gravity to work inwards. As far as I know that the gravity is only downwards. If i setup my pool board on the XY plane, the gravity will only work downwards so all the balls will fall to the lower edge of the board. I dont want to take the gravity off, I just want the gravity to work inwards if possible so that the balls can fall though the holes at the four corners of the board.
I will be really grateful if anyone can please help me with this problem.
Kind regards,
Shahed
I am new to box 2d and im trying to make a pool game using box2d. I dont know how to make the gravity to work inwards. As far as I know that the gravity is only downwards. If i setup my pool board on the XY plane, the gravity will only work downwards so all the balls will fall to the lower edge of the board. I dont want to take the gravity off, I just want the gravity to work inwards if possible so that the balls can fall though the holes at the four corners of the board.
I will be really grateful if anyone can please help me with this problem.
Kind regards,
Shahed