DerKarlos / OSMeta

OSM "Metaverse"
Other
15 stars 2 forks source link

Concept for symbol names #65

Open DerKarlos opened 6 months ago

DerKarlos commented 6 months ago

We may define a concept for the names, we use for symbols.

A challenge for this concept is the Bevy Resource Transform. Let’s ignore the big-space for a start. So Transform can be splittet in Translation and Rotation. But Bevy-ECS does not have extra types for them but uses Vec3. A) Both may have world- or relative/delta/diff-meaning. B) Because we use the Earth in its real size and sphericity, the “flat” surface, the OSM-Tiles are orientated to, is gone! But we should provide functions to calculate between word- and surface-values. So shall we use “type” or in the naming style? C) And now consider big-space. The Translation may be local inside a grid as Vec3 or big-space (grid,local). Again wie could invent types or clarify it by the symbol name. Even write an issue to big-space to get extra names.

We could start with a wiki page and invent "roles" and examples.

oli-obk commented 6 months ago

Because we use the Earth in its real size and sphericity, the “flat” surface, the OSM-Tiles are orientated to, is gone! But we should provide functions to calculate between word- and surface-values. So shall we use “type” or in the naming style?

We have TileCoord and TileIndex for this. They have methods for converting to and from Cartesian coordinates

oli-obk commented 6 months ago

And now consider big-space. The Translation may be local inside a grid as Vec3 or big-space (grid,local). Again wie could invent types or clarify it by the symbol name. Even write an issue to big-space to get extra names.

I can create a helper like Player to handle transform + grid together with helper methods

DerKarlos commented 6 months ago

Your comments are good for #51 and "Player" may also be a good idea. I will write for details there. As long as we use our own types, it is fine. I will give concrete undefined examples here later