Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Help and Support v
« Previous 1 … 15 16 17 18 19 … 21 Next »
Issue with applyForceOffset
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Issue with applyForceOffset
04-05-2015, 09:08 AM,
#8
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Issue with applyForceOffset
Check your force amount, I bet it'll print out as something like #Q.NAND, which is Source's way of saying way too big.

Basically you're probably passing "infinite" force to it. Just clamp the amount of torque you're applying:
local MaxTorque = 5e6 --Who knows what a good max is, try them and see
local NewTorqueAmount = math.clamp( TorqueAmount, 0, MaxTorque )
if NewTorqueAmount == 0 then return end
if NewTorqueAmount ~= TorqueAmount then
Torque:Normalize()
Torque:Mul( NewTorqueAmount )
TorqueAmount = NewTorqueAmount
end
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Issue with applyForceOffset - by LocInt - 28-04-2015, 10:02 PM
RE: Issue with applyForceOffset - by Person8880 - 29-04-2015, 05:48 PM
RE: Issue with applyForceOffset - by LocInt - 29-04-2015, 06:39 PM
RE: Issue with applyForceOffset - by Person8880 - 29-04-2015, 06:44 PM
RE: Issue with applyForceOffset - by LocInt - 29-04-2015, 06:45 PM
RE: Issue with applyForceOffset - by Person8880 - 29-04-2015, 06:52 PM
RE: Issue with applyForceOffset - by LocInt - 04-05-2015, 01:46 AM
RE: Issue with applyForceOffset - by Person8880 - 04-05-2015, 09:08 AM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.