#ball rolling movement system

1 messages · Page 1 of 1 (latest)

safe quest
#

i have a game link on the inspo, in essence i want to recreate this movement, with the character being a ball

https://www.roblox.com/games/12311686019/The-absorving-ball

i am not entirely sure where to start, i tried making it a startercharacter, i tried welding a ball to the player, but neither was quite what im looking for

any guidance helps

Roblox

Check out The absorving ball. It’s one of the millions of unique, user-generated 3D experiences created on Roblox. Absorving ball which gets bigger each time you absorve a part

#

also for reference i am a cs student and know how to code i just havent worked with roblox in a really long time and have no idea whats the best way to go about this

#

most of the forums also suggest the like "marble" movement system which isnt what im looking for

jolly dagger
#

is that an ellipse kind of movement

blazing lantern
#

I have some marble physics

#

You get a marble when u join the game

#

This is really messy but

#

Server

#

Then controlling on the client is like

#

And make Humanoid stand or set its state to Physics

#

Those Raycast Positions are for jumping but depends on how precise u wanna be ig

#

I would change quite a bit if I remade this now, and never got it to a state where I would say its completed lol

#

like the movement not even using deltaTime 💀

safe quest
#

thats pretty interesting

#

it doesnt look all that awful

blazing lantern
safe quest
#

and i like some of the ideas

blazing lantern
#

Why did I get double flagged lol

safe quest
#

lol not sure

#

thats pretty cool though

#

do you happen to know how i could actually make the character itself a ball?

#

or at least make it seem that way

#
Roblox

Check out Marble Chaos!. It’s one of the millions of unique, user-generated 3D experiences created on Roblox. 🎱 Marble Chaos! is a game where you can roll around the game world with a ball/marble character!
🛤️ Roll around the world or play minigames to obtain tracks which you can use to purchase cosmetics in the shop!

Recent Updates:
😎 REVAMP U...

blazing lantern
#

Mine is just welded inside the ball

safe quest
#

this game is another one where the movement is kinda what im looking for

#

yeah that makes sense

blazing lantern
#

Mine is based off my friends game

safe quest
#

yeahh

blazing lantern
#
Roblox

Check out Super Blocky Ball. It’s one of the millions of unique, user-generated 3D experiences created on Roblox. Roll around and race, and find hidden marbles!!

May 6 2024: booster launch distances are now consistent

May 5 2024: booster detection isn't affected by framerate anymore

April updates: Desert Dunes rework & new map Residential Ral...

#

This game has the best marble physics

#

imo

#

But too complex for me to make lolll

#

When I made the marble physics I showed it was my first time making any custom movement so it took me quite a while to research and figure out stuff too

jolly dagger
blazing lantern
#

Noice

jolly dagger
safe quest
#

yeahhh somethiong like that

#

turning the player into the ball yknow

blazing lantern
#

I think there is a sanic ball game the is uncopylocked but its super broken

#

Found it lol

#

I think I looked at it before and was too complex for me to understand + some things were broken

#

But that has a character as ball

jolly dagger
#

the rolling comes from ```lua
local instance : BasePart = self.Instance
local offset = (self._LastPosition - instance.Position) * Vector3.new(1, 0, 1)
local distance = offset.Magnitude

if distance > 0.01 then
    -- Axis of rotation perp to yAxis
    local axis = offset:Cross(Vector3.yAxis)
    self._orientationCF = CFrame.fromAxisAngle(axis, 2 * distance / instance.Size.Z) * self._orientationCF
end

instance.Torso.C0 = self._orientationCF * CFrame.Angles(0, 2*math.pi, 0)
#

moving it via vectorforce ```lua
function CharacterPhysics:Move(moveVector)
local desiredVelocityXZ = moveVector * SPEED
local currentVelocityXZ = self.Instance.AssemblyLinearVelocity * Vector3.new(1,0,1)
local accel = (desiredVelocityXZ - currentVelocityXZ) * 5
local Force = self.Instance:GetMass() * (accel:Dot(accel) > _accelMaxSqrd and accel.Unit * _accelMax or accel)
self:SetForce(self.MoveForce, Force)
end

blazing lantern
#

Math 😢

hasty crater
#

if you insert a model into StarterPlayer named "StarterCharacter" then each time you spawn as the model

safe quest
#

i tried it yeah

#

the rolling of the character and everything was fine but the movement was still choppy like walking around with a humanoid

hasty crater
#

fork the player module

#

and remove the movement related stuff

#

when you're playing the game go into the "Players" service, select your player go into "PlayerScripts" and copy the player module

safe quest
#

i used AssemblyLinearVelocity and it works fine for movement

#

now its just working out how to get the character to look how i imagine