BallPhysics - Aerodynamic ball physics for Roblox

BallPhysics is an open-source library that makes balls curve, drift, and spin in flight. The physics are inspired by real aerodynamics but deliberately tuned for gameplay feel - this is not a 1:1 simulation.

This started as a private physics system I built for my own games. Exploiters kept decompiling it, so when I decided to rewrite it I took it as a chance to do it properly and put it out publicly - so anyone can use it.


Magnus Curve
Knuckle Ball


What it does

Magnus Effect - spinning balls curve in the direction of their spin. Topspin dips, backspin floats, sidespin curves sideways.

Knuckleball - low-spin balls drift unpredictably in an oscillating pattern. Each ball gets its own random drift so multiple balls in the air behave independently.

Angular Damping - spin decays over time. Faster on the ground, slower in the air.

Anti-Gravity - partially cancels gravity to keep the ball in the air longer. Fully configurable.

All effects are toggleable at runtime and configurable in a single Config.luau file. You can also register your own custom effects.


Ownership

Simulation always runs on whoever owns the ball’s network physics. When ownership transfers to a client, they take over simulation seamlessly. When they leave, the server picks it back up.


Install

Grab the .rbxm from the releases page, or use Wally:


[dependencies]

BallPhysics = "thaalish/ball-physics@1.0.0"

Tag any BasePart (Shape = Ball) with "PhysicsBall" and you’re ready to go.

Full documentation, configuration reference, and custom effect examples are on GitHub.


Uses AlarmClock by boatbomber, vendored into the library.

41 Likes

can you give us an example place? i got confused with the documentation and how to use the effects

This is amazing, great job on this. Very useful for sports games.

1 Like