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
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?
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.
Blade ball does not use tweens lol. I assume they use VectorForces.
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)
I think it uses a vector force to negate gravity, and a line force to home in on the player
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?
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
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
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?
Pretty much. I have a suspicion it’s a point controlled by code.
We don’t use tweens.
Characters
Indeed we do not. This is fun to read thru tho ngl lol
I’m not too surprised honestly. Maybe it’s lerping + mod, now that I think of it tween is unreasonable based on the symptoms.
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”
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.
This method causes things to be eternally desynced
If it isn’t tween then the only option has to be lerp
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.