Hello,
I want to shoot an objects. I used the applyLinearImpulse. When I want to shoot
the object a second time (I did a removeChild and a addChild to this object) It
looks that it still has that impulse. The object is going faster and faster. Any
idea how I can fix or stop this?
Thanks,
Marc
Comments
So as I understand you want to reuse same body for shooting another object? I don't know if thats a good idea, but if you really want it, you can try setting velocity of body
different directions mostly horizontal. I use gravity too. I haven't added physics
yet to to the other objects like floors and walls so at them moment the object
is leaving the screen. When I tap the next time on the screen I want to do the
same shooting action. By swiping on the screen I can give the object some angle
(Angry Birds effect). Later I will add different velocities to influence the speed
and the distance the object will get.
Regards,
Marc
Marc