load mesh data and structure meshes

This commit is contained in:
2024-01-14 19:30:28 -06:00
parent a54e8c2176
commit 68920f150d
7 changed files with 60 additions and 62 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ public class InfoCmd extends AbstractDevCmd {
for (Regions regions : targetBuilding.getBounds().getRegions()) {
//TODO ADD REGION INFO
}
output += "Triangle Count: " + targetBuilding.buildingTriangles.size();
output += "Mesh Count: " + targetBuilding.buildingMeshes.size();
break;
case PlayerCharacter:
output += newline;
+7
View File
@@ -47,6 +47,13 @@ public class RegionCmd extends AbstractDevCmd {
output += "is Outside: " + region.isOutside();
this.throwbackInfo(pc, output);
}
if(building != null){
for (Mesh mesh : building.buildingMeshes){
if(mesh.boundsRect.contains(pc.loc.x,pc.loc.z))
this.throwbackInfo(pc, "Inside A Mesh's Bounds");
}
}
}
@Override