Hi,
The problem is with the following line:
Code:
dest = CAR_TRANSFORM
In python when you assign a list to a variable, it doesn't make a copy. So when you modify the z coordinate of the
dest variable you are also modifying the
CAR_TRANSFORM variable. Use the following code to make a copy of the list:
Code:
dest = CAR_TRANSFORM[:]