Blade Ball Ball Physics

Does anybody have any idea how the ball physics in Blade Ball were created? I’ve been trying to replicate it for educational purposes but everything just seems so much less smooth and more glitchy than the one in theirs

35 Likes

I have no clue how the game blade ball works or it’s mechanics but based on what I’ve seen, I think they use tweens?

10 Likes

Yeah if you lag, the physics glitch. Probably tweens. You MIGHT be able to recreate with physics using an anti gravity force + a direction however.

11 Likes

Blade ball does not use tweens lol. I assume they use VectorForces.

10 Likes

They definitely use tweens. The behaviour of the ball during lag conditions reeks of serverside tweens. Why else would it loop in place but smoothly? Actually the tweens are probably client commanded by server.

Sidenote: I believe the ball is just code and the ball is only a visualization, which works by the server telling the client how to tween the ball. The client probably just spams the last instruction it has (resulting in smooth movement except it loops when lagging)

9 Likes

I think it uses a vector force to negate gravity, and a line force to home in on the player

5 Likes

No, I doubt it, the behaviour of it during lag makes it seem like the ball is a visualization of a code controlled ball. It loops with the smoothness of the client, but doesn’t home in like it would if it was client owned. Why would the client seem to be repeating a tween if it was lagging, assuming it was physics?

3 Likes

i’ve never experienced the ball lagging in blade ball, however one time the ball sped up so much that it started phasing through the target player

4 Likes

At one of my homes I have really slow internet (3 second lag spikes constantly with 1 second breaks in between and always 500 ping or more)(sometimes it works well though with no lag) so I can see what the ball does when lagging.

Edit: fixed typos

4 Likes

By “code”, do you mean the “ball” could just be some vector point that a script keeps track of while the physical ball is tweened to that vector?

3 Likes

Pretty much. I have a suspicion it’s a point controlled by code.

3 Likes

We don’t use tweens.
Characters

9 Likes

Indeed we do not. This is fun to read thru tho ngl lol

5 Likes

I’m not too surprised honestly. Maybe it’s lerping + mod, now that I think of it tween is unreasonable based on the symptoms.

4 Likes

TweenServiceV2 is the answer to all this. TweenService V2

3 Likes

Now that i think about it, im pretty sure they use an invisible ball as the actual ball and then just use tweenv2 to make it appear “smoother”

2 Likes

Allow me to go into more detail, there is an invisible ball, which acts as the actual ball, with the actual balls hitbox, etc; but then there’s an actual visible ball, which is just purely visual and is constantly tweened to the real ball.

3 Likes

This method causes things to be eternally desynced

3 Likes

If it isn’t tween then the only option has to be lerp

2 Likes

VectorForce and LinearVelocity. They are gate keeping their methods on how they do it exactly, Which i fully understand. However, I’m pretty sure they use those instances.

2 Likes