AI being scary to work with
AI being scary to work with
By Malik Carter
I've been working on the AI for a while now. Looking into the unity asset store to going through a series of YouTube videos. For the last week I've been having trouble with the sensors of the AI so it knows what to avoid. That got mixed up with the pathfinding method I used for the AI to look for the next current node so the AI keep crashing into the wall. I haven't made a reverse function yet because I honestly want the AI to be able to go through the track in one try but then there's these bumps in the track that the AI was never able to get passed.
I think for a way to fix the problem with the AI crashing into the wall. I can try making a reverse function if the front center sensor starting position hits a collider on the track it'll trigger the reverse function. If I can do that then I don't need to worry about the AI crashing into the wall and not being able to steer away from it. I should also create even more sensors so the AI wouldn't even think about touching the walls. Instead of doing that I added a Brakes function so that the AI will slow down a bit before reaching a collider so it can steer better. While doing so I have to keep changing the floats of the brake torque, mass of the wheel colliders, and others for smooth turnings.
Comments
Post a Comment