Hi All,
I’ve just started playing around with the physics library and want to knock up something really basic… a bat on the left hand side of the screen with a ball being pitched from the right hand side. When the user touches the screen it will swing the bat and hit the ball if it collides.
Can anyway give me a few basic tips on how to do this?
How do I make the bat apply force to the ball to give it a realistic hit trajectory?
Can I use a sprite for an animation of the bat, if so how do I make this interact with the ball, do I just use hidden rectangles underneath the image?
Any advice or code assistance will be greatly appreciated!
Kind Regards,
Krivvenz.