Hello,
the other day I downloaded the Pinball Madness example from Ansca(http://developer.anscamobile.com/code/pinball-madness)
I picked the code apart until I understood most of it. I’m new to Corona and this was always a good learning method for me.
The problem:
In the example project, physics are very unreliable. (To the point of being broken, when it comes to a pinball game) The ball passes through the flipper paddles, the spring shoots through the ball and I even got the ball stuck in the paddles a good few times. I tried around with this for days now and can’t get it to work properly. As I’m new, I know I’m probably doing something wrong.
If somebody could help me fix this, I would VERY VERY happy since this is bugging me a lot.
Here is what I tried already:
1.)Tried out PositionIterations and VelocityIterations, trying out different values. Didn’t change much it seems, even extremely high numbers didn’t prevent it from happening.
2.)Changed ball size/radius
3.)Redoing the collision shapes for the paddles, from complex to simple rectangles
4.)Added isBullet to both the ball and the paddles (Might have been at the wrong place, but I tried a bunch of different locations to add it)
5.)Changed densitiy of both the ball and the flippers, didn’t get rid of the problem, except that it seems to happen more often with low density
6.)Searched for similar problems in the forums and read the threads on the subject
7.)Read the post by Jonathan Beebe that got recommended in one of those threads (http://blog.anscamobile.com/2011/08/solutions-to-common-physics-challenges/)
8.)Tried to reduce the speed of the ball through less bounce and more friction
9.)Increase the FPS setting in the config.lua to 60
10.)Tried physics.setScale(60) (working with an iPad)
I hope somebody can help.
Thanks in advance.
John [import]uid: 65258 topic_id: 16297 reply_id: 316297[/import]
[import]uid: 3826 topic_id: 16297 reply_id: 60753[/import]