#how to create momentum? any ideas?
1 messages · Page 1 of 1 (latest)
Inertia doesn’t mean the same thing as momentum btw.
on every frame (RunService.Heartbeat):
currentVelocity = HumanoidRootPart.AssemblyLinearVelocity
if player is pressing movement keys (UserInputService):
movementDirection = Vector3 from input
apply VectorForce or LinearVelocity with Force = movementDirection * acceleration
else:
currentVelocity = currentVelocity * dragFactor (e.g. 0.9)
apply VectorForce opposite to velocity (friction/drag)
Or you could get their current velocity and add a boost on the second jump specifically
You could even base how much of a boost with some sort of formula depending on how fast they were going