Check if car looking at spline point

Hey

i have a car which follows a spline path. I need for the steering to check if the car is looking at current waypont (vector3d). It should no matter from which direction the car looks to the waypoint. How can i do this?

It should work like in this picture, yellow side is the front of the car

258494-ges.png

Calculate difference between car center and spline point (in world coords), then normalize - this will be desired direction vector.

Get car forward vector - this will be actual direction vector.

I think you need it in 2d coords, so set Z components to 0.

Now, you should compare this two vectors somehow.