Download

Ball Ai

I was wondering if someone knew how to make the Physics Ball follow the player. It would use the same movement as the Physics Ball blueprint, but I can’t figure out how to make it follow the character. Any help would be appreciated.

I’m not sure how the ball movement works, but assuming it uses forces, this seems like you basically need to get a direction to send the ball in, which would be a vector subtraction of the positions of the ball and player.

A = ball position

B = player position

C = B - A = vector from A to B

Normalize C and you have the direction to push the ball in.