Search the Community
Showing results for tags 'missing function'.
Found 2 results
I was trying to use Math:DeltaAngle but it doesn't seem to exist. I guess it is a C++ function that hasn't been exposed to Lua. I'm using this as a temporary fix and it seems to do the job: function Math:DeltaAngle(a,B) local d = b-a d = d + (( (d>180) and -360 ) or ( (d<-180) and 360) or 0) return d end
I just tried using Math:Lerp for the first time and get the error: attempt to call method 'Lerp' (a nil value) This is how I am calling it, I have also tried Math.Lerp and just Lerp, they don't work either. local R = Math:Lerp(self.DayAmbient.x,self.NightAmbient.x,Intense) As as a test I did I for k,v in pairs(Math) do print(k,v) end and I couldn't see Lerp anywhere in the output I understand how Lerp works and can write the function myself to get around this, I just didn't know if the documentation is wrong or I am having some kind of bug or what.