Fixed incorrect plane projection

This commit is contained in:
Anuken
2020-03-21 19:11:13 -04:00
parent 148abaccd9
commit 196a9dd77e
2 changed files with 2 additions and 2 deletions

View File

@@ -321,7 +321,7 @@ public class PlanetDialog extends FloatingDialog{
//face up
sector.plane.project(Tmp.v32.set(sector.tile.v).add(Vec3.Y)).sub(sector.tile.v).rotate(Vec3.Y, rotation).nor(),
//right vector
Tmp.v31.set(Tmp.v32).add(sector.tile.v).rotate(sector.tile.v, 90).sub(sector.tile.v).rotate(Vec3.Y, rotation).nor()
Tmp.v31.set(Tmp.v32).rotate(Vec3.Y, -rotation).add(sector.tile.v).rotate(sector.tile.v, 90).sub(sector.tile.v).rotate(Vec3.Y, rotation).nor()
);
}