I am making Box2d game for iPhone. I need to use force on the body, which represents my main character. The body is actually a rectangle at the top of a circle connected by a revolving joint. I use this as a skeleton for my character who needs to work through the game (any suggestions or feedback about this will be appreciated too).
I need a force that needs to be applied continuously so that it does not move. What would be the best way to do this?
I am currently applying linear velocity inside the tick method.
_world->Step(dt, 10, 10); if(gamestarted) { b2Vec2 force = b2Vec2(6, -3); _bottomBody->SetLinearVelocity(force); }
But will this force restrain and accelerate the body?
source share