Hi guys,
I have two rounded objects, ball A and ball B.
When ball A collides with ball B, I want ball A to ‘bounce away’ from ball B, i.e. get an impulse relative to ball B x,y (imagine if you touch a bomb you would blow away of the bomb x,y).
The impulse amount would be a value provided by me, to determine the bouncing amount.
I’m using applyLinearImpulse inside my collision event in ball A, but I don’t know what math should I use to calculate the 4 parameters applyLinearImpulse needs (forcex, forcey, bodyx, bodyy) to get it right.
Could you guys help me out?
Thanks!
[import]uid: 37667 topic_id: 35228 reply_id: 335228[/import]