car sprite directions are not evenly spaced/mapped
car sprite directions are not evenly spaced/mapped
This is the sprite sheet I am using. The sprites are consistently rotated 5.625 degrees each. Traveling N/S/E/W looks fine. However, when the sprite is pointing NW/SW/SE/NE it actually travels in a direction that is a bit more horizontal than vertical. If this is intentional, that mapping should be published so that we can create sprite sheets with the appropriate distribution of directions. If this is unintentional, then consider this a bug report.
Re: car sprite directions are not evenly spaced/mapped
It occurs to me that the problem might be some perspective correction in the game. I suspect that these sprites would line up with their direction of travel if I compressed them all by some amount in the vertical direction (a poor man's perspective transform).
Re: car sprite directions are not evenly spaced/mapped
There is correction indeed.
The correction is made, that if you rendered that car to go some direction and then rendered it 45 degrees, the direction of the car on the screen will match. We call it projectionCorrection.
Long story short, we can make a flag for that that would disable it.
The correction is made, that if you rendered that car to go some direction and then rendered it 45 degrees, the direction of the car on the screen will match. We call it projectionCorrection.
Long story short, we can make a flag for that that would disable it.
Re: car sprite directions are not evenly spaced/mapped
A flag to disable it might be ideal.
Re: car sprite directions are not evenly spaced/mapped
Added the flag for 0.9.4 and documented the RotatedSprite type here:
https://forums.factorio.com/wiki/inde ... atedSprite
https://forums.factorio.com/wiki/inde ... atedSprite