12-22-2023, 05:40 PM
(This post was last modified: 12-22-2023, 05:51 PM by SAMYTHEBIGJUICY.)
Heya I need to add some colour to this sorry - the info above is misinformed. I just tested the leaning code in a new scene with a huge undulating 5km road and it worked perfectly. There's something wrong with the cached data I think of that one spline in particular.
I will add that something similar like this used to happened occasionally before where I saw that my splines data wasn't somehow refreshed properly so I deleted them all and started again - maybe im missing some option to fresh the cache somehow but I think there's a possibility for an overlap of spline reference data somewhere which explains why those tangents are pointing in a completely different direction - the data is pointing to another spline. It's difficult to repro tbh and the easiest way I found to refresh was to delete the spline/ curvy global manager and create a new one. But not sure if I can safely do this now that I have many more splines in my actual game world.
I will add that something similar like this used to happened occasionally before where I saw that my splines data wasn't somehow refreshed properly so I deleted them all and started again - maybe im missing some option to fresh the cache somehow but I think there's a possibility for an overlap of spline reference data somewhere which explains why those tangents are pointing in a completely different direction - the data is pointing to another spline. It's difficult to repro tbh and the easiest way I found to refresh was to delete the spline/ curvy global manager and create a new one. But not sure if I can safely do this now that I have many more splines in my actual game world.