jorisvddonk / system-reset

System Reset - Re-implementation of Noctis IV, in Godot
9 stars 1 forks source link

Engine coordinate mismatch: positions of stars and planets does not match position as it is in Noctis IV #3

Open jorisvddonk opened 1 year ago

jorisvddonk commented 1 year ago

Godot and Noctis IV use different coordinate systems, and right now, Noctis IV's planet/star coordinates are mapped directly to Godot. This then causes the positions of planets and stars to not be aligned with their position as seen in Noctis IV.

Note: Noctis IV internally has its Parsis Y axis flipped; if a star's datastructure indicates that it is at parsis 42;100;13, then it is displayed as 42;-100;13 - the Y axis is flipped, but only in the UI. Feltyrion-godot, as well as this project, behave similarly: parsis coordinates are always kept like they are in the engine, and only when parsis coordinates are displayed to the user does the Y coordinate get its sign flipped.

jorisvddonk commented 1 year ago

Perhaps this screenshot of the Grid anomaly could help with figuring out how to fix this: image

jorisvddonk commented 1 year ago

Looks like the Grid Anomaly, from this perspective, is flipped both horizontally and vertically.