I am working on a side scroller iphone game and I want to check how much velocity is applied to a body.
I apply velocity this way: ((b2Body *)_body)->SetLinearVelocity(b2Vec2(10.0f,0.0f));
When this body hits another body it's speed drops. I want to check if it's velocity has dropped and add more velocity so it can move at the same speed.
What is the best way to do it?
Thanks,
Alexander
I apply velocity this way: ((b2Body *)_body)->SetLinearVelocity(b2Vec2(10.0f,0.0f));
When this body hits another body it's speed drops. I want to check if it's velocity has dropped and add more velocity so it can move at the same speed.
What is the best way to do it?
Thanks,
Alexander