Hi,
I am using cocos2d for iPhone, and need to create a random position on screen, and then fire a body up from off screen into the screen space.
Once I pick my random x and y position, and a random speed - I want to fire something to this position which will be the the apex of the move. How do I work out which impulse to apply to the body so it goes exactly to that position so it then falls down through gravity. Think Fruit Ninja....
Thanks for any advice.
Regards
i
I am using cocos2d for iPhone, and need to create a random position on screen, and then fire a body up from off screen into the screen space.
Once I pick my random x and y position, and a random speed - I want to fire something to this position which will be the the apex of the move. How do I work out which impulse to apply to the body so it goes exactly to that position so it then falls down through gravity. Think Fruit Ninja....
Thanks for any advice.
Regards
i