Hi everyone, I am trying to create a border/tunnel for shooting a pinball. I wonder how to create a Round border in the physics engine? I know how to define an object shape like:
"sideBumperShape = { -10,0, -10,-480, 10,-480, 10,0 } "
But how can I define a shape with smooth curve ??
thanks [import]uid: 38556 topic_id: 10740 reply_id: 310740[/import]
Unfortunately, this isn’t really possible. You need to assemble your rounded surfaces using a polygon shape (if it’s a convex curve) or several polygons (if it’s a concave curve).
This isn’t just a limitation of Corona, but rather of Box2D and most similar physics engines. If you look very carefully, you can see that the “smooth hills” in the big-selling game “Tiny Wings” are composed of lines and vertexes. It’s just moving so fast, the player can’t see it. And in a pinball game, the player likely wouldn’t see it either, if you construct your “curves” properly. 
Brent [import]uid: 9747 topic_id: 10740 reply_id: 38986[/import]