So i made a car follow a track from this example.
In my code i wanted 2 things:
- speed is framerate independent
- the car is allowed to have movement offset from the track ( the car doesn’t have to follow the track 100%).
It worked until i tried to smooth the rotation. The car gets stuck between the segments 26 and 27.
And it rotates back and forth, this doesn’t happen when there is no interpolation.
I have no clue why this is happening, the relevant code is between 175 and 205.
Maybe someone knows what is causing this?
Also i want to ask why all playground examples don’t use deltaTime when moving objects.
In gameEngines this is default to keep the movement framerate independent.
So i am confused why the examples don’t use it.
All help is greatly appreciated