GridVids
Sign in with YouTube

Can Gemini park a car?

AIA May 2, 2026 16:48
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

I asked Gemini to write code to park a car in a simulation I made. For anyone curious... this is using Gemini 3.1 Pro. Prompt 1: [var1] = Parking Simulation [var2] = InitializeParking [var3] = gemini_v1 use the documentation at: https://github.com/theaia/AIGamePyLibrary/tree/main to create a python script for the [var1] . Use the details of the [var1] to create a viable AI for whatever strategy you deem appropriate. Make sure to select cosmetic options for [var2] that represent your vibe. There are countries for popular LLM models you might associate with. You can leave the custom_texture empty. Make sure the modifier LLM is set to true. Use the name "[var3] " Use the name "[var3].txt" for the save data Summarize your strategy. Prompt 2: this is pretty good. the only issue it has is that it gets into a loop when it has a forward collision detection where it just keeps going forward and backwards. I'd recommend adjusting your strategy to... # 2. Custom Throttle: Drive forward if clear, reverse if obstacles are detected via raycasts. for what happens when obstacles are detected. just reversing and then going forward when clear is resulting in a continuous loop of collision Prompt 3: this solution is slightly better than the last version, but still has the same problem where it's getting stuck in a continuous forward/reverse loop where there's a forward collision. It appears that the steering correction in reverse doesn't occur for a long enough duration to allow the car to adjust it's heading meaningfully enough name this gemini_v3. Prompt 4: this is better, but the front right of the car ends up colliding with another car. perhaps your spherecasts need to be wider to account for this. name this gemini_v4 Prompt 5: this is pretty close here's what I noticed... -the car seemed to prioritize alignment, this resulted in a case where the car was successfully in the stall but decided to reverse out of it. ParkingGetBool has an option to allow you to see when you're fully in a stall -pulling into a stall will result in a forward collision because of the curb. you may need to prioritize ignoring forward collisions when the target is closer than the forward collision -the car collided when reversing to adjust it's heading. perhaps rear collision detection would help name this gemini_v5
Science & Technology
#ai #llm #claude code #ai game dev #game dev ai #ai simulation #ai moral dilemma #ai code #ai parking #ai learns #large language model #unity #how to make a game #how to make a game with ai #unity ai #artificial intelligence #ai learns to park #tesla #full self driving #fsd #autonomous cars #autonomous automobile #self-driving car #self-driving #self driving #parking #rivian #waymo #nvidia #zoox #general motors #cruise #gm #Robotaxis #pony.ai #claude #gemini #gemini 3.1 pro #gemini code