flame-engine/flame

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

Fechada

#2.613 aberto em 19 de jul. de 2023

 (0 comentário) (0 reação) (0 responsável)Dart (1.021 forks)batch import
enhancementhacktoberfest

Métricas do repositório

Stars
 (10.575 estrelas)
Métricas de merge de PR
 (Mesclagem média 3d 22h) (6 fundiu PRs em 30d)

Description

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

Guia do colaborador