I’ve experimented with different Distance Thresholds and Reward Scales, but at the end they drive as fast as they can without accounting for any obstacles.
Gather Agent Completion
If they drive out of the track:
I let this run overnight, and the result was them just hitting any obstacle on the path, not even trying to avoid. Any idea what I’m doing wrong? Any help is appreciated. Thank you!
Maybe you’ve already checked but make sure that the basics are all working. Check that your obstacles have query collisions enabled. If they do, make sure that your collisions are hitting etc.
I am seeing something odd though. After making sure of the above and anything else you might have missed or assumed to be a fact without checking, do check that “Make proportion along ray observation” node. I have a suspicion that if you debug draw the line trace it won’t be correct. I think this function expects a local start and local finish not a world. The reason I think that is because it’s taking in a transform. Try placing the start at 0,0,0 and the end at your mesh’s forward vector multiplied by the length of your car’s vision.
Thank you for your reply @AlexarassK. Make Proportion Along Ray Observation was indeed the problem. The rays were being debug drawn at wrong locations.
This solved it:
Awesome. You don’t know how happy it makes me to see people helping each other in the community with this. I never wanted to be the bottleneck so kudos to you both for helping each other. Thanks!