Android Question Describe a curve as a collidable surface

noclass1980

Active Member
Licensed User
Longtime User
Hi, I've looked at a number of tutorials including ABs Garfield game (using the ABPhysics engine) and would like to know if it is possible to describe a curve (like a children's play slide) which can be considered "collidable". That is, if a ball rolled down it it wouldn't fall through. Same applies as if it is a rollercoaster etc. I've thought about using a series of rectangles lying on the tangents to the curve but wondered if this would be too memory hungry. The rectangles would be transparent and the actual curve is an overlaid bitmap giving the appearance that the ball was rolling down the curve. Any suggestions gratefully received. Thanks in advance.
 
Last edited:

noclass1980

Active Member
Licensed User
Longtime User
Can anyone help with this?
 
Upvote 0

noclass1980

Active Member
Licensed User
Longtime User
Brilliant, just what I was after! Itried both libraries and the libGDX is much faster. Many thanks, more hours of fun ahead!
 
Upvote 0
Top