Ball Keeps Rolling After Teleporting

I am making a ball roller game.

I want to make it so that when the ball hits a certain object, it teleports to a certain location. I did this but when the ball teleports, it reaches the correct location but the ball just keeps spinning, like it was just continuing the movement from before it teleported.

I want to know how I can stop the ball from rolling after it teleports.

In your code when you teleport the ball stop the movement of the ball.

How would I stop the movement, what would I do in blueprints?

It would depend on how you are moving it. If you are moving it by force, add a set force node in the teleport and set it all to 0.

Here I am 3 years and a half later… But I want to answer for those who need because I just spend a bunch of hours looking for a solution and I finally found it by myself so just want to share :stuck_out_tongue:

you just have to stop the velocity of your ball, Set a “All Physics Linear Velocity” after your teleport node (you may have to uncheck the context sensitive to see it).

The ball will teleport and its velocity will be stopped instantly :slight_smile:

“MovementComponent → set Velocity”