Car lights caustics

I try to make a car lights caustics on a wall, but i cant figure out what to do or if its possible.
I cant to the vector math to keep the blue area and shift it in the middle and correct the yellow area.
I guess i must turn the ray length somehow to the object space.