Best Collision method for bat and ball

Tim_ATim_A Member, PRO Posts: 60

Hi all,

just wondering what collision approach you would take for an overhead baseball-style game?

I have a ball actor travelling along the Y-axis towards a batter.

The plan is that when an on-screen button is pressed, the batter swings and hits the ball. The ball object will then move along a chosen path off the screen.

I'm not planning on adding any real physics, just a collision event.

Would monitoring the balls Y position as an attribute, and then saying 'if button down, and ballY >400 <420' work?

Or is there an easy way to add real physics to the batting action so that the balls can be hit left/right depending on timing?

Thanks for any help

Tim

Comments

Sign In or Register to comment.