Posted February 04, 2023 by Vrixic
#bug #unrealengine4 #cpp #programming #game
This bug was found during the last cross-studio testing we had. It was a weird bug that 'teleported' the player to a location when the player spammed the mantle key.
Problem:
The problem is that it wasn't teleporting the player even though it seemed like that; it was the mantle target location (On top of the mantle block) that was getting corrupted.
Tracking Problem:
Tracking the bug was easy, I tried many different-sized mantle blocks and tested which ones worked and which didn't; from that, I found out uniform scale mantle blocks worked completely fine but non-uniform blocks produced the bug. So I went into code to see if I was taking the size of blocks into account and found out that I was using the scale of the objects the player is mantling onto.
Solution:
This bug was a very simple fix. I fixed this bug by not taking scale into account when I was doing mantle calculations.
- Vrij Patel, VECCA Developer