Pushing release for Flamanis fixes on for classic pet, av and other bugs.

This commit is contained in:
Tercio Jose
2024-08-04 18:20:49 -03:00
committed by andrew6180
parent 35080fdb5b
commit 30af843b42
4 changed files with 20 additions and 6 deletions
+8
View File
@@ -289,6 +289,14 @@ end
function DF:GetBezierPoint(value, point1, point2, point3)
return DF.Math.GetBezierPoint(value, point1, point2, point3)
end
function DF:GetVectorLength(vectorX, vectorY, vectorZ)
if (not vectorZ) then
return (vectorX * vectorX + vectorY * vectorY) ^ 0.5
end
return (vectorX * vectorX + vectorY * vectorY + vectorZ * vectorZ) ^ 0.5
end
--normalized value 0-1 result in the value on the range given, e.g 200-400 range with a value of .5 result in 300
function DF:LerpNorm(minValue, maxValue, value)
return (minValue + value * (maxValue - minValue))