flame-engine/flame
feat(flame_forge2d): Use a meter-to-pixels constant for rendering instead of zoom
Chiusa
#2613 aperta il 19 lug 2023
enhancementhacktoberfest
Metriche repository
- Star
- (10.575 stelle)
- Metriche merge PR
- (Merge medio 3g 22h) (6 PR mergiate in 30 g)
Descrizione
What could be improved
We should be using a meter-to-pixels constant for rendering instead of using the zoom of the camera. The zoom is needed since there is a speed limit in Forge2D which we currently easily hit when we calculate one Forge2D unit as one pixel, instead of something larger.
Why should this be improved
To make the coding more natural, you shouldn't have to zoom in just to not hit the speed limit.
Any risks?
Yes, this will be a breaking change.