Triangle check

This commit is contained in:
2024-01-13 21:27:26 -06:00
parent 0b05e661c7
commit 306c64d236
7 changed files with 22 additions and 31 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 += "Mesh Count: " + targetBuilding.buildingMeshes.size();
output += "Triangle Count: " + targetBuilding.buildingTriangles.size();
break;
case PlayerCharacter:
output += newline;
-11
View File
@@ -47,17 +47,6 @@ 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(new Point2D.Float(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z))){
if(((AbstractCharacter) target).loc.y < mesh.maxY) {
this.throwbackInfo(pc, "Inside Mesh Bounds");
return;
}
}
}
this.throwbackInfo(pc, "Outside Mesh Bounds");
}
}
@Override