Hello everyone, I have to make a semi-autonomous vehicle, which mostly follows the kerb/line to navigate, but at times should be manually controlled as well. Any suggestion related to the currently available model or logic to create my own vehicle controller will help? Thanks
You can take the position of the vehicle and the 'kerb' in FixedUpdate(). Then apply forcemode.impulse until it's back within the range. (you might want a cooldown timer on the force. idk)
there is an example vehicle project in Unity Standart Assets which contains AI, Manual Controller, and Waypoints. you can copy/edit their Scripts.