# Humanoid obscure air resistance

unlike normal physics objects, humanoids will artificially reduce their velocity while in the air by about 143 studs/second to make platforming easier. This is not good for situations where you want the player to move like a physics object. Here's a solution written by EmeraldSlash

```lua
-- NOTE: Humanoids by default get their velocity reduced by 143 studs/sec
--       which is not helpful for a jump pack, so we account for that here.
--       However, it is helpful to have some velocity dampening, so we keep
--       some of it e.g. 0.5 or (1-Data.Custom.AntiVelocityDampening)
local HUMANOID_VELOCITY_DAMPENING = 143 * Data.Custom.AntiVelocityDampening

-- Negate most of the humanoid's innate velocity dampening
local velocityDirection
local assemblyVelocity = Vector2.new(root.AssemblyLinearVelocity.X, root.AssemblyLinearVelocity.Z)
if assemblyVelocity.Magnitude > 0 then
    velocityDirection = Vector3.new(assemblyVelocity.Unit.X, 0, assemblyVelocity.Unit.Y)
else
    velocityDirection = Vector3.new()
end
root.AssemblyLinearVelocity += velocityDirection * (HUMANOID_VELOCITY_DAMPENING * delta)
```
