Small improvement

This commit is contained in:
Maximilian Giller 2023-07-06 00:21:41 +02:00
parent e8c9a14199
commit 16ddfaa942

View file

@ -81,7 +81,7 @@ float Player::getWorldRadius() const
sf::Vector2f Player::getIsoSize() const
{
// TODO: For some reason, the player is a little to narrow. This fixes it.
const float fixFactor = 1.4f;
const float fixFactor = sqrt(2);
float width = radiusInWorld * 2.f * WORLD_TO_ISO_SCALE * fixFactor;
return {width, width * ISOMETRIC_SKEW};
}