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.