Original Post
Im working on my first game ever and I have made a prototype for a 2D Pinball-simulation and after lotsa effort most off the collision detection is working just as I wanted it to do, but theres one equation Im not able to solve (or even find for that matter) and its when Im trying to calculate when and where the ball will hit the flipper (or the other way around).
I describe the ball as the four tuple (Pos, Velocity, Acceleration, radius) and the Flipper (Pivot, Angel, Angulary speed), well theres a few more parameters but they isnt nessesary for this problem.
Whats making it hard (for me
) is the fact that the flipper is moving with an angulary speed and the ball is moving in a stright line (every timestep that is).
At the moment Ill move the flipper and then check if hit did hit the ball, if it did I just move the ball and gives it it''s new speed. This works but sometimes the result gets a bit peculiar cos'' I pretend the ball stands still when I update the flipper and vice versa.
Sooo, Im hoping that someone could help me find the equation to solve the Collision time t and Collision Pos(x,y).
/Thanks