New answers tagged

0

I can't off code itself but i can offer the theory behind it with some pseudo code First of all some theory: Screens have a resolution this is mesured in pixels so for example, 1920*1080 on a screen of 10 inches, this is more pixels per inch so 20 pixels on this screen would take up less space then 20 pixels on a 40inch screen, because of this some math ...


0

I think I've seen some of your other posts as I followed the same tutorial myself here years later. You've tried to "correct" the logic of the original algorithm by using //Find which axis has the biggest penetration ;D Vector2 fixnormal; if (xExtent > yExtent){ But that's not the original tutorial's logic ...



Top 50 recent answers are included