Is there a Chipmunk library for movement using forces/impuls
Posted: Wed Jan 20, 2010 5:02 pm
Hello,
I am developing a top-down 2D iPhone game and I need some sort of library or function for Chipmunk or cocos2d iphone that handles movement in 2-dimensional space using forces or impulse.
Note: There is no gravitity force since it is a top down game.
Note: Again, this will be in Objective-C.
So the function would be something like this:
-(void)moveSprite:(AtlasSprite *)sprite ToPoint:(CGPoint) point{
//Function or library that applies the proper physics and/or impulses to AtlasSprite sprite to get to CGPoint point
}
I just want to know if such a library or function exists. Has anybody implemented this or heard/knows of such a library/function? The problem I have is that it is a little hard to understand forces and vectors and impulses, as testing with them has produced inconsistent results. I WILL have to create the above function manually from scratch either way, therefore I was wondering if I could save myself a little time.
Thanks a lot
I am developing a top-down 2D iPhone game and I need some sort of library or function for Chipmunk or cocos2d iphone that handles movement in 2-dimensional space using forces or impulse.
Note: There is no gravitity force since it is a top down game.
Note: Again, this will be in Objective-C.
So the function would be something like this:
-(void)moveSprite:(AtlasSprite *)sprite ToPoint:(CGPoint) point{
//Function or library that applies the proper physics and/or impulses to AtlasSprite sprite to get to CGPoint point
}
I just want to know if such a library or function exists. Has anybody implemented this or heard/knows of such a library/function? The problem I have is that it is a little hard to understand forces and vectors and impulses, as testing with them has produced inconsistent results. I WILL have to create the above function manually from scratch either way, therefore I was wondering if I could save myself a little time.
Thanks a lot