gongpha / gdQmapbsp

A simple plugin that loads Quake's MAP/BSP files into Godot 4 interactively
MIT License
42 stars 5 forks source link

Change conversion from X -> -X to X -> -Z #32

Closed gongpha closed 10 months ago

gongpha commented 10 months ago

Related to #31. Just change the coordinate conversion from -x, z, y to -y, z, -x.

Makes more sense than the old one because Godot uses -Z as the forward direction. The old conversion uses -X as the forward (same as Quake but in negative) and needs to rotate to -Z. But the new conversion uses -Z as the forward direction directly, no need to rotate.

victorbstan commented 10 months ago

Gave it a quick test with a couple of maps, seems to be ok.