Hi.
I do race location in my game. I use Level Sequence to create path for every NPC car move. I need identify which cars leaders, position in race. Is there some ready blueprint solution?
Hi.
I do race location in my game. I use Level Sequence to create path for every NPC car move. I need identify which cars leaders, position in race. Is there some ready blueprint solution?
You can assign all of the racers numbers on start, and switch their numbers when one passes the other.
Now the question becomes âHow to detect when one car âpassessâ another car?â How do we define âpassingâ? You can do it by placing a spline in your level that covers the entire track, and when two cars get close enough to each other, switch the carsâs assigned numbers if the car with the lower valueâs closest location on the spline is further into the spline than the one with the higher value. I donât remember the calculation method exactly from memory, but this is how you can do it
Thank a lot, I will try understand and reproduce