Answers for "Why is this little bit of math returning infinity???"
http://answers.unity.com/questions/237997/why-is-this-little-bit-of-math-returning-infinity.html
The latest answers for the question "Why is this little bit of math returning infinity???"Answer by Kryptos
http://answers.unity.com/answers/238020/view.html
`Infinity` is returned when a DivisionByZero is performed (in most cases). Therefore you have to check the value of barbarian.damageIncreaseWith2HWeapons before attempting the division.
Something like:
if( barbarian.damageIncreaseWith2HWeapons > 0.1f )
{
l_Damage /= barbarian.damageIncreaseWith2HWeapons;
}Tue, 10 Apr 2012 15:55:09 GMTKryptos