Page 1 of 1

making sense of maxangledif

Posted: 29 Sep 2010, 06:36
by smoth
(unitdef file)
maxAngleDif = 210

(unitdef inside of lua)
maxAngleDif = -0.25881904363632


so what am I seeing here? Maybe my math sucks but this isn't radians.

Re: making sense of maxangledif

Posted: 29 Sep 2010, 06:40
by lurker
Looks like a comparison number for a dot product of vectors, so cos(theta). In this case cosine of 105 degrees.

Re: making sense of maxangledif

Posted: 29 Sep 2010, 12:41
by Tobi

Re: making sense of maxangledif

Posted: 04 Oct 2010, 17:55
by KDR_11k
Spring loves to do comparisons by checking the difference between the normalized vectors.