Skip to content

Commit 35f60b0

Browse files
Doliman100Strand8319
authored andcommitted
Restore applyTorque clamp (#3568)
The previous commit accidentally removed the torque clamp. This one restores it.
1 parent 2631cad commit 35f60b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/entities/gmod_wire_expression2/core/entity.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ e2function void entity:applyTorque(vector torque)
734734
if not validPhysics(this) then return self:throw("Invalid physics object!", nil) end
735735
if not isOwner(self, this) then return self:throw("You do not own this entity!", nil) end
736736
if torque:IsZero() then return end
737+
torque = clamp(torque)
737738

738739
local phys = this:GetPhysicsObject()
739740

0 commit comments

Comments
 (0)