The vehicle might be rotated, so you aren't shifting by just dx/dy, it needs to be prevalc_dx/dy[0] I think.