Skip to content

Commit

Permalink
Slight wheel torque output buff
Browse files Browse the repository at this point in the history
  • Loading branch information
thecraftianman committed Nov 26, 2024
1 parent 47ea1c1 commit 82470af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/entities/acf_gearbox/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,9 @@ do -- Movement -----------------------------------------
if not Phys:IsMotionEnabled() then return end -- skipping entirely if its frozen

local TorqueAxis = Phys:LocalToWorldVector(Link.Axis)
local TorqueMult = 2 -- NOTE: Arbitrary torque multiplier; we ought to have a better means of implementing this

Phys:ApplyTorqueCenter(TorqueAxis * Clamp(deg(-Torque * 1.5) * DeltaTime, -500000, 500000))
Phys:ApplyTorqueCenter(TorqueAxis * Clamp(deg(-Torque * TorqueMult) * DeltaTime, -500000, 500000))
end

function ENT:Calc(InputRPM, InputInertia)
Expand Down

0 comments on commit 82470af

Please sign in to comment.