Hi all,
I'm using Chipmunk and SpaceManager. I'd like to allow the user to draw a line (a curve)
and then make a ball fall. If the ball hurts the line, it has to roll according to the curve.
For example if the user draw a horizontal line the ball has to bounce a little then stop,
if the user draw a sort of U the ball has to stop in the center of the U (like in a valley)
after oscillating a little.
The line has to "force" phisical behaviour, like this but...
cpShape *rectangle = [smgr addRectAt:ccp(100,50) mass:STATIC_MASS width:100 height:10 rotation:0];
cpCCSprite *block = [cpCCSprite spriteWithShape:rectangle file:@"block1.png"];
[self addChild:block];
.. but not a rectangle but a user-drawn line (curve)
How can I do? Thank you!!