Hi, I’m using Cocos2d-x v3.7 to make a JavaScript game.
I have a physics sprite and I am interested in moving it on a certain collision. I know that move actions MoveTo() and MoveBy() cannot be applied to physics sprites. I found applyImpulse() to be the best alternative for my needs but I want to move my physics sprite a tad bit on the screen so I am thinking that I will have to apply an impulse then apply another impulse again in the opposite direction to stop the physics sprite from moving.
Does anyone know a better alternative method to using MoveBy on a physics sprite?