Advertisement

I need help with a simple AI

Started by May 22, 2009 05:09 AM
9 comments, last by wodinoneeye 15 years, 6 months ago


In guardianRandomMoviment(int i)


if(distanceGuardianDestination(guardians) <= 0.0)



should have some kind of DIST_MIN value also (close enough...)

less than or equal to zero may cause a dodging action
if your movement doesnt do partial step when closer than one step from target.

Roundoffs can also make it never be 'equal zero....
--------------------------------------------[size="1"]Ratings are Opinion, not Fact

This topic is closed to new replies.

Advertisement