collision handler
This commit is contained in:
1 parent
3ad97a7ce3
commit
6354eb2893
1 file changed
+4
-2
@@ -52,8 +52,10 @@ 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))){
|
||||
this.throwbackInfo(pc, "Inside Mesh Bounds");
|
||||
return;
|
||||
if(((AbstractCharacter) target).loc.y < mesh.meshHeight) {
|
||||
this.throwbackInfo(pc, "Inside Mesh Bounds");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.throwbackInfo(pc, "Outside Mesh Bounds");
|
||||
|
||||
Reference in new issue
Block a user