why ApplyLinearImpulse is not same every time on same body with same values using box2d in cocos2d - x?

橙三吉。 提交于 2019-12-24 13:42:31

问题


I want to know the exact functioning of Impulse Function in box2d. right now i am trying to apply Impulse on same kind of bodies with same kind of value of force .

For Ex.

b2Vec2 force =  b2Vec2(20,50);
MyBody->ApplyLinearImpulse(force, MyBody->GetPosition(), true);

on above example i am applying force with static values on my dynamic bodies , now every Mybody not behaving same kind of force. why is it so ?!!

According to my understanding , it should behave same every time. or am i wrong ?!.. please help me to understand. Thank you.

来源:https://stackoverflow.com/questions/29887940/why-applylinearimpulse-is-not-same-every-time-on-same-body-with-same-values-usin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!