forked from MagicBane/Server
load mesh data and structure meshes
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 += "Triangle Count: " + targetBuilding.buildingTriangles.size();
|
||||
output += "Mesh Count: " + targetBuilding.buildingMeshes.size();
|
||||
break;
|
||||
case PlayerCharacter:
|
||||
output += newline;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user