|
|
@ -52,10 +52,12 @@ public class RegionCmd extends AbstractDevCmd { |
|
|
|
if(building != null){ |
|
|
|
if(building != null){ |
|
|
|
for(Mesh mesh : building.buildingMeshes){ |
|
|
|
for(Mesh mesh : building.buildingMeshes){ |
|
|
|
if(mesh.boundsRect.contains(new Point2D.Float(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z))){ |
|
|
|
if(mesh.boundsRect.contains(new Point2D.Float(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z))){ |
|
|
|
|
|
|
|
if(((AbstractCharacter) target).loc.y < mesh.meshHeight) { |
|
|
|
this.throwbackInfo(pc, "Inside Mesh Bounds"); |
|
|
|
this.throwbackInfo(pc, "Inside Mesh Bounds"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
this.throwbackInfo(pc, "Outside Mesh Bounds"); |
|
|
|
this.throwbackInfo(pc, "Outside Mesh Bounds"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|