Detect when an object passes above a checkpoint

I’m very new to Unity and I need your help :slight_smile:

I am creating a 3D simulation for a vehicle tracking and I need to use “checkpoints” on my track. In concrete terms, I want something which alerts me when the vehicle passes above a checkpoint position.

I added my checkpoints as standard GameObject cubes, I would just need a function that displays “CHECK” when my vehicle goes above. Do you think it’s possible ?

Thank you in advance :slight_smile:

See if the vehicle’s position’s distance from the checkpoint is smaller than a given distance, then you can trigger check. That’s how most games do it.