How stop body and move to another position

Hello, It’s my first Topic. Firstly, sory for my english.

I’m in the process of creating a game like Arkanoid. I want to handle when the ball touches the floor to move it to the starting position above the paddle but when I use in onContactBegin:

ballBody->setVelocityLimit(0);
ball->setPosition(Point(visibleSize.width / 2 + origin.x, visibleSize.height / 5));

Ball freeze in last position when contact with floor.
I tried find solution in google but without result.

Ok, sory, I found solution. I used runAction and MoveTo instead setPosition

setPosition should also work. What are your bit masks set to?