OZONE Asylum
Forums
DHTML/Javascript
Pinball game: Collision of a ball with a pinball paddle
This page's ID:
30777
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
poi said: You could also express the flipper as a distance function of the segment between its two round extremities and compute distance between that segment and the center of the ball. I never really thought about pinball's physic. The tricky part to me seems to take into account the extreme speed of the flippers when they go up and could pass through the ball between 2 frames. In such case you'd have to interpolate the positions to find the exact moment and point of contact. Yeah, I was thinking I would need to calculate the plane in which the ball will strike the paddle and then use the paddle angle from that point to determine the normal for the ball. I'll have the vector so ne I get the normal from the intersection of the ball and the paddle. I'm thinking I'll treat the paddle like a sphere and then check for collisions once a ball enetrs the portion of the sphere Once the ball is inside the sphere of collision, i can check for the closest point of collision to the flipper face. The flippers appear instantaneous, so i can treat the ball position at the time of flipper trigger as the collision point. [img]http://i42.tinypic.com/2ni5rm1.jpg[/img] the ? is where the ball is at the time of flipper being triggered. the blue dashed line is the leading face of the paddle and the leading edge of the ball. I only need to know the angle form the leading edge of the ball to the center of the paddle rotation to know what angle the paddle will be at when it hits the ball? Does that seem correct?
Hint: Quote part of a previous post by highlighting it before clicking the “Quote” button.
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »