mirror of
https://github.com/Winded/RagdollMover.git
synced 2025-03-04 03:13:36 -05:00
snapAngle rotates nonphys bones in the correct direction and also snaps correctly
This commit is contained in:
parent
c29b96a608
commit
4adf52098c
@ -694,7 +694,7 @@ do
|
||||
|
||||
|
||||
if nonphys then
|
||||
return mathfunc(accumulated / snapamount) * snapamount
|
||||
return -mathfunc(accumulated / snapamount) * snapamount
|
||||
else
|
||||
return startangle.y - (mathfunc(accumulated / snapamount) * snapamount)
|
||||
end
|
||||
@ -793,7 +793,7 @@ do
|
||||
|
||||
local rotationangle = localized.y
|
||||
if snapamount ~= 0 then
|
||||
rotationangle = snapAngle(localized, startlocal, snapamount, true)
|
||||
rotationangle = snapAngle(localized, startangle, snapamount, true)
|
||||
end
|
||||
|
||||
if self.axistype == 4 then
|
||||
|
Loading…
Reference in New Issue
Block a user