ErosOlmi
05-06-2008, 06:32
Hi,
I was playing last night with Arkanoid script and thinking about what could be the theory and math behind the interaction between the paddle and the ball.
For a good interaction and being able to apply to the ball some nice and precise effect, direction, control, I think more variables are to be taken into consideration:
angle of the ball
direction from where the paddle was coming just before hitting the ball
place inside the paddle where the hit with the ball take place (center, left side, right side or other subpart of the paddle)
Even imagine that the ball can have its own effect so another info we can add to the ball is: current effect, I mean the rotation of the ball on its own axes. When the ball hit a brick or the paddle with a local rotation, this will influence the next angle/rotation.
Just brain storming with myself.
What do you think?
Eros
I was playing last night with Arkanoid script and thinking about what could be the theory and math behind the interaction between the paddle and the ball.
For a good interaction and being able to apply to the ball some nice and precise effect, direction, control, I think more variables are to be taken into consideration:
angle of the ball
direction from where the paddle was coming just before hitting the ball
place inside the paddle where the hit with the ball take place (center, left side, right side or other subpart of the paddle)
Even imagine that the ball can have its own effect so another info we can add to the ball is: current effect, I mean the rotation of the ball on its own axes. When the ball hit a brick or the paddle with a local rotation, this will influence the next angle/rotation.
Just brain storming with myself.
What do you think?
Eros