Here is a small post on how I managed to simulate an Edge Shape in Android. I wanted to do this after I saw the Java demo of Box2D in JBox2D(see RayCast ). For the Edge Shape I chose a cosine curve. I used the same method I used, mentioned in my earlier post “ Making of the Total Control Android Game ”
Since it is a cosine curve I place a ball shape for every point on a cosine function, close to each other to seem continuous and create a body from the Sprite with physical properties.
for ( int i = 0; i... [More]