Creating a Momentum System

Basically, I want to try to recreate the Momentum System from this game:

I’ve set up a system for hitboxes that can detect things with a “Hittable” module script. Im using OOP for these Hittable Modules and plan to make it so you can call a function, something like

Hittable:SetMomentum(Vector3.new(10, 10, 10))

Ive thought about using a BodyVelocity, but those don’t allow for player movement, and i think they’re deprecated. Im not sure what i should use for this system, nor how to get it to work consistently with objects/players that might have different mass.

Anyways, if you know how i could go about recreating this sort of momentum system, please share your thoughts!

Edit for extra info: i thought i would try to have some sorta “SimpleMass” property that will effect momentum only when you add to the momentum with a function like:

Hittable:AddMomentum(Vector3.new(10, 10, 10))

This would allow me to have some things not take as much Added momentum from things like knockback, but still allow for having things like launchpads or explosions that would consistently launch things the same distance.

1 Like

Heres some footage of the momentum system in the game:

1 Like

You could use bodyVelocty, i do not know whether its the best option or not.

As i said, i already thought of that, but ive tried something similar before and had issues with it being inconsistent.

oh, the post was kinda long and i did not read it all lol