Jump to content

Math:DeltaAngle does not exist (not exposed to Lua?)

Recommended Posts

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

Share this post

Link to post
This topic is now closed to further replies.
  • Create New...