ive got an working moving enemy in my scene, but i want to read out if its moving or not. The actual velocity of my rigidbody stays at 0. I cant find any script which would run the moving in update or fixed update.
Why is my character moving ? In which script updatefunction is the moving called when you just download the asset and run with the given scripts ?
i want to make sure that it uses my rigidbody for movement.
Well ive just found the aibase, how do i acces those values from it ? I Mean there is no script attached to my agent, how can i read out the velocity ?
I would use the ai.Move function in a coroutine with a decreasing amount of movement every frame. Alternatively you could modify the velocity of the agent (though I believe you need to subclass the AIPath class for that as it is a protected field).
If you use say a CharacterCollider on the agent I think it should use collisions. Alternatively you could enable the ‘Constraint To Inside Graph’ toggle on the AIPath script which will prevent it from moving outside the graph.
Sorry for the late reply, this function is just godlike! Love it. Thank you
I stopped doing AI a few days later, because i had other things on that project to do. Now iam back to the enemy system and well i needed that checkbox for the explosion animation to prevent my agents from getting pushed through walls.