• Member for 2 years, 4 months
  • Last seen more than a month ago
Centering Image inside ImGui window causes bug
1 votes

It was a "rounding error". When you encounter similar bug then make sure your ImGui window/Image inside window are on rounded position. In my case "float x" variable was 39.5f and ...

View answer
Distance between moving, rotated rectangles in snake game
0 votes

The answer to my question is as follows: auto currentPosition = it->m_sprite.get_position(); auto previousPosition = (it - 1)->m_sprite.get_position(); float distance = sqrtf ( powf(abs(...

View answer