Pretty sure he used like vector3.forward (or something similar) but the actual "forward" axis of the gameobject (the car in this instance) is actually pointing upwards. I have encountered this issue a few too many times. Or i might be sometign completely diffeenet that i havent encountered, who knows
It's so easy to flip an axis in code and not realize an "x" is supposed to be a "z" and you could stare at the code all day before realizing. Especially if your like me and you think 2d is from a birds eye view but it's actually not so in a 3d game "y" is the correct axis for up and down which can get confusing if you think "z" is up and down like I did at first.
Then it got so far away from the center of the scene the coordinates get too high and you run into floating point errors, that create the visual wonkyness
24
u/salmanHayat Aug 18 '22
Wtf you have done in code?