I have been building a game where you make your own plane, ala KSP, its a race game. I was doing some refactoring when suddenly my game stopped behaving as it should. Whenever my racer would collide with terrain, it would start rotating uncontrollably without any input, and bounce off the terrain in a seemingly random direction at high speed. It continues to rotate and move at a linear pace until it hits the edge of the world and dies.
I had an inkling it was because one of my changes was altering the class of the “root” part from a scene component to a static mesh component. I changed a few things, that didn’t work. So I decided to revert everything back 4 commits. I deleted my binaries, intermediate, derivedatacache folders, regenerated everything, and recompiled. Same exact issue.
I reverted back 10 more commits. Same problem. At this point I’m just at a loss for words. I don’t even know how to proceed. I use a combination of C++ and BP, but mostly C++. I derive all my BP classes from C++ and use those.
Another oddity is I have a packaged version of the game from the day that I broke the game. It works without any issues. I remade the packaged version of the game with reverted code, and I have the issues again. I know for a fact that the reverted code was behaving fine, and suddenly it has issues.
Can anyone give me an idea as to how I can get back to where I was before the game broke on me? I’ve reverted my code back two weeks to before this issue came up, and somehow the issue is appearing with that weeks old code.