Physics-Based Sphere Controls Like in Veszteseg

Hello. I’m trying to create a system where the player doesn’t fall off the sphere when he rolls it, however, I run into bugs.

Here is an example of what am I trying to do:

But here is what I get:

Got any ideas how to fix this?

1 Like

Whats the code thats causing this? Also, try dividing/clamping the velocity before you set it to reduce the sensitivity of it.

Hi, I am the original uploader of the video. To fix your problem, simply have a BodyVelocity object in the player character’s torso which mimics the sphere object’s velocity if the player is “riding” it. I recomand using a RunService.Heartbeat:Conect(function() loop for this as it will update at the same time.

There are more ways to keep the player on the ball, some working even better, but this is the one that I used in the script I showcased in that vid.

1 Like