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

Rotatable character on a sphere?

Asked by 8 years ago

Hello everyone, I was wondering if it is possible to make a sphere that when a player walks on it they automatically can walk on its surface, even go upside down. I thought about using the Gravity property but then I think it will just pull the character towards the sphere not allowing the player to move around it freely. Anyone know a very plausible solution? Kind Regards, addictedroblox1414

0
You need to show us that you have tried using a script first, we can't just make it for you, also maybe make the sphere move instead of you, like an illusion LittleBigDeveloper 245 — 8y

1 answer

Log in to vote
1
Answered by 8 years ago

The obvious solution is to move everything else instead of you, because it means you don't have to worry about custom controls. However, if you use a pair of BodyMovers then you can solve that easily.

Using a BodyGyro, orient the Torso towards the center. That's easy enough, because assuming a BodyGyro takes a CFrame you can do it all from the constructor

BodyGyroRotationPointThing = CFrame.new(Torso.Position, Sphere.Position)

Using some other BodyMover like a BodyForce, create an artificial gravity towards the sphere. This can once again be done with the CFrames.

Force = (Vector3.new(0,192.6,0) + CFrame.new(Torso.Position, Sphere.Position).lookVector * ArtificialGravityMultiplier) * TotalCharacterMass

Of course, you'd have to set the ArtificialGravityMultiplier to the artificial gravity for the sphere. And you'd have to get the Character mass c:

0
afaik GetMass is not a method of Model. You'll have to iteratively get the total mass of the model by doing it for each part. XAXA 1569 — 8y
0
Well, son of a cheesecake maker. User#6546 35 — 8y
Ad

Answer this question