I want it to work like this photo
If the player is on the top left of the ball, it rolls there, if the player is not in the ball, it stops rolling.
Does anyone have a script that does this/or knows how to do it? in that case, thanks
I want it to work like this photo
If the player is on the top left of the ball, it rolls there, if the player is not in the ball, it stops rolling.
Does anyone have a script that does this/or knows how to do it? in that case, thanks
I guess one way is to find the horizontal distance between the player and the ball (Create new vector from ball’s position.x/z and player’s y, and subtract it from player’s position, then .Magnitude) and add a force in that specific direction. You can also check to see if the player is within a box above the sphere to determine whether they are still riding it. For instance checking by making sure the player’s x and z values are within the ball’s x and z values, and making sure their y value is above the ball within a certain limit.
Hopefully this isn’t too generic, but will help you get an idea of what to do.