shape
This commit is contained in:
@@ -12,6 +12,7 @@ package engine.devcmd.cmds;
|
||||
import engine.Enum;
|
||||
import engine.devcmd.AbstractDevCmd;
|
||||
import engine.gameManager.BuildingManager;
|
||||
import engine.gameManager.NavigationManager;
|
||||
import engine.gameManager.ZoneManager;
|
||||
import engine.math.Vector3f;
|
||||
import engine.math.Vector3fImmutable;
|
||||
@@ -68,16 +69,9 @@ public class RegionCmd extends AbstractDevCmd {
|
||||
//}else {
|
||||
// output += "zone: null" + newline;
|
||||
//}
|
||||
if( building != null){
|
||||
boolean pointBlocked = false;
|
||||
for(Path2D.Float area : building.meshes){
|
||||
Vector3fImmutable pos = ((AbstractCharacter)target).loc;
|
||||
if(area.contains(new Point((int) pos.x, (int) pos.z))){
|
||||
pointBlocked = true;
|
||||
}
|
||||
}
|
||||
output += "pointBlocked: " + pointBlocked;
|
||||
}
|
||||
|
||||
output += "pointBlocked: " + NavigationManager.pointIsBlocked(((AbstractCharacter)target).loc);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user