How to stop a object

So I have a ball rolling down a hill. I made it to be moved back to the top whenever it rolled too far away. But, I want to stop (as in like setting the velocity to 0 or something) the ball and restart it again. how would I do that? (I tried to use velocity, but it did not really work and it is Deprecated)

1 Like

Use AssemblyLinearVelocity and set that to 0, 0, 0, and set the ball’s position back to the top.

1 Like

Is that like an instance that I need to initiate?
edit: nevermind, I found it

@Pokemoncraft5290 I have another question, how do I stop the ball from spinning?

I think you need to set AssemblyAngularVelocity to 0, 0, 0.

1 Like