Ball follow Character

Hello all!

How can I make a rolling ball to follow the player

I used this for dog following character in top down.

This probably won’t work as expected as the rolling ball might be using torque to roll? if it is you need to determine a vector as your input direction between the ball and the player and feed that in as axis inputs to make it roll towards the player.

If its not using torque, then using the above move to can slide a capsule collider towards the player and you would need to use velocity to work out what spin to put on the ball to make it look like it is rolling.

Try to use rotating movement component for ball movement. (check such game template)
Then just calculate direction vector to your player with some rest distance.