mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 14:32:06 -08:00
Fixed incorrect plane projection
This commit is contained in:
parent
148abaccd9
commit
196a9dd77e
2 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ public class Planet extends UnlockableContent{
|
|||
}
|
||||
}
|
||||
|
||||
sectors.peek().unlocked = true;
|
||||
sectors.get(sectors.size/2).unlocked = true;
|
||||
}else{
|
||||
sectors = new Array<>();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue