#so for my game i made a "ai" that will

1 messages · Page 1 of 1 (latest)

harsh maple
#

I think I'm facing a similar problem - it could be that, when it approaches its destination position, it stlil has a nonzero velocity, so it will coninue to move past its destination, and then it will try to return to the destination by accelerating in the other direction, rinse, repeat

shut halo
#

and do you want a video to see what im dealing with\

harsh maple
#

personally, not yet lol
you could try to have it deccelerate when the distance from its destination is small enough? I haven't figured this out myself though

#

or, you could just tell it to stop trying to navigate whn it gets close enough to the desination

shut halo
#

actullay that might work

#

in the code it is supposted to stop at a certain distance

harsh maple
#

yeah, you could have it stop trying to "follow" until the player gets too far