vehicles aligning to hilly terrain

This commit is contained in:
devZoGok
2025-10-19 16:09:44 +03:00
parent 00af4433d3
commit d769e5cbf6
4 changed files with 196 additions and 34 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ namespace battleship{
Vector3 pos = Vector3(unitTable[posInd]["x"], unitTable[posInd]["y"], unitTable[posInd]["z"]);
string rotInd = "rot";
Quaternion rot = Quaternion(unitTable[rotInd]["w"], unitTable[rotInd]["x"], unitTable[rotInd]["x"], unitTable[rotInd]["x"]);
Quaternion rot = Quaternion(unitTable[rotInd]["w"], unitTable[rotInd]["x"], unitTable[rotInd]["y"], unitTable[rotInd]["z"]);
int id = unitTable["id"];
int buildStatus = unitTable["buildStatus"].get_or(0);