Day5: Enemy AI
Day 5 figured out a way to get AI working with the vehicles using navmesh agents. Basically the enemies have a navmesh agent that just acts as a guide telling the car controller where it needs to go, and then the AI sends steering and gas input to the vehicle to get it where it needs to be. Right now the enemies don't know how to stop when they are close or at their goal, which is okay for now.
Also was able to sneak in drifting with handbrake, but the car physics system is not perfect and I think I might redo it later (it is unity wheel colliders right now).
Day 4 I researched quite a lot about vehicle physics and navigation, and added a better camera script to follow the car, although very rudimentary. I was also able to convert some scripts to use addressables instead of GameObject references, although I don't know if it will help performance that much, I will try to use it whenever I can.
I guess next up I will try to get some audio and sound effects in the game, maybe using FMOD as well, so will see how that goes.
Highway 82
Combat Racing Game
Status | In development |
Author | omr-machine |
Genre | Racing, Action |
Tags | Post-apocalyptic |
More posts
- Devlog 4: Prototype MapNov 08, 2023
- Day7: Dynamic AudioOct 10, 2023
- Day3: BROADSIDESOct 04, 2023
Leave a comment
Log in with itch.io to leave a comment.