Original Post
hello
we are currently working on an iphone game and using cocos2d and box2D for it.
the game works as when the catapult throws the player at a particular angle above...
the player has animations like sitting, ready to go and flying through air....
currently when the catapult throws the player animation changes correctly but it starts to rotate randomly...
i want to know as to how can i make the player go through the air in a linear fashion facing straight(i have animation for looking straight forward)....but it rotates in a circular fashion after being thrown from the catapult..
also i want it to experience some drag(air resistance) while flying...and the air resistance changing its angle while in the air
any help or advice is appreciated.
the physics i want is similar to this game http://www.miniclip.com/games/catapult/en/
Thank You
we are currently working on an iphone game and using cocos2d and box2D for it.
the game works as when the catapult throws the player at a particular angle above...
the player has animations like sitting, ready to go and flying through air....
currently when the catapult throws the player animation changes correctly but it starts to rotate randomly...
i want to know as to how can i make the player go through the air in a linear fashion facing straight(i have animation for looking straight forward)....but it rotates in a circular fashion after being thrown from the catapult..
also i want it to experience some drag(air resistance) while flying...and the air resistance changing its angle while in the air
any help or advice is appreciated.
the physics i want is similar to this game http://www.miniclip.com/games/catapult/en/
Thank You