whiterabbit Posted August 17, 2014 Share Posted August 17, 2014 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. Link to comment Share on other sites More sharing options...
shadmar Posted August 17, 2014 Share Posted August 17, 2014 It's not exposed to lua (looking in the headers), so It won't work in lua, this is probably a bug yes HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
macklebee Posted August 17, 2014 Share Posted August 17, 2014 By performing a dump of all the globals in LE's lua implementation, I can see that Math:Lerp is indeed missing. Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Josh Posted August 18, 2014 Share Posted August 18, 2014 THanks, added it. 2 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts