algorithm for 3D simulation racing

I’m still new in game development, and I want to develop Android game during my holiday.

I want to create game with bike (its OK 1st or 3rd person camera) and simple circuit in 3D.
No condition is required, only with few 3 lapse, the player won the game.

so, what suitable algorithm I can use and is there any advice in these type of games?
and is there any example coding I can refer? TQ

I’m not sure which bit of the game you want an “algorithm” for? There are plenty of vehicle physics examples available on the asset store and elsewhere. To detect whether a player has crossed the finish line you can add an invisible trigger and listen for OnTriggerEnter.