utilize min and max Y values for meshes

This commit is contained in:
2024-01-05 23:03:51 -06:00
parent 253ca2344e
commit fd47c90f4f
6 changed files with 16 additions and 11 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ public class RegionCmd extends AbstractDevCmd {
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.meshHeight) {
if(((AbstractCharacter) target).loc.y < mesh.maxY) {
this.throwbackInfo(pc, "Inside Mesh Bounds");
return;
}