forked from MagicBane/Server
Triangle check
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user