flame-engine/flame

feat(flame_forge2d): Use a meter-to-pixels constant for rendering instead of zoom

已關閉

#2,613 建立於 2023年7月19日

 (0 則留言) (0 個反應) (0 位負責人)Dart (1,021 個分叉)batch import
enhancementhacktoberfest

倉庫指標

星標
 (10,575 顆星)
PR 合併指標
 (平均合併 3天 22小時) (30 天內合併 6 個 PR)

描述

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.

More information

https://www.iforce2d.net/b2dtut/gotchas#speedlimit

貢獻者指南