Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How to switch gravity like in Gravity Shift?

Asked by 5 years ago

How do I switch the gravity around and still maintain character controls in the general plane so that I can move in that direction freely?

Basically, I want to emulate what was achieved in gravity shift, but with a humanoid, not just a ball.

I know how to in general change gravity with Bodyforces, and how to move with bodyvelocities, but how do you just the controls so that you can theoretically allow your humanoid to move in the Y direction?

I know this will be more difficult as I will have to deal with the humanoid object, and with how humanoids work, I will probably have to make custom animations for moving in a different axis, but first I need to get the movement down.

thanks.

1 answer

Log in to vote
0
Answered by 5 years ago

hmm, this is kinda tacky, but you could anchor the humanoidrootpart, move it by checking whether you press a button and use vector3 and cframe to move the humanoid, and have a script on whatever wall that when you touch it, it will switch the animations and moving script to one working in the y dimension. Maybe using lookvector of the torso, and moving it in the lookVector. So if you rotate the torso, it will still move towards the lookVector. And it's anchored, so you wont fall.

Ad

Answer this question