Ball game physics questions
Posted: Wed Sep 25, 2019 11:38 am
Hi
I was looking to the love physics and I think that's great for my game. However I have couple of questions if anyone knows good way to go about it.
First I'm making a sport game where there is walls around the play area which the ball cannot pass but should bounce back (and I'm going to use love physics for this). And in game the players carry around the ball but what if the ball touches the border? How do I combine the physics engine with players being able to carry the ball with them?
Second question, is there a function to check when the ball crosses the goal line?
thanks!
I was looking to the love physics and I think that's great for my game. However I have couple of questions if anyone knows good way to go about it.
First I'm making a sport game where there is walls around the play area which the ball cannot pass but should bounce back (and I'm going to use love physics for this). And in game the players carry around the ball but what if the ball touches the border? How do I combine the physics engine with players being able to carry the ball with them?
Second question, is there a function to check when the ball crosses the goal line?
thanks!