forked from MagicBane/Server
load mesh data and structure meshes
This commit is contained in:
@@ -43,8 +43,7 @@ public class MoveToPointHandler extends AbstractClientMsgHandler {
|
||||
Line2D travelLine = new Line2D.Float();
|
||||
Vector3fImmutable endLoc = new Vector3fImmutable(msg.getEndLat(),msg.getEndAlt(),msg.getEndLon());
|
||||
travelLine.setLine(pc.loc.x,pc.loc.z,endLoc.x,endLoc.z);
|
||||
float movementDistance = 185 + pc.loc.distance(endLoc);
|
||||
HashSet<AbstractWorldObject> awoList = WorldGrid.getObjectsInRangePartial(pc.loc, movementDistance, MBServerStatics.MASK_BUILDING);
|
||||
HashSet<AbstractWorldObject> awoList = WorldGrid.getObjectsInRangePartial(pc.loc, 1000, MBServerStatics.MASK_BUILDING);
|
||||
for(AbstractWorldObject awo : awoList){
|
||||
Building building = (Building)awo;
|
||||
if(CollisionManager.CollisionDetected(building, travelLine,pc.getCharacterHeight(),pc.loc.y)){
|
||||
@@ -54,7 +53,7 @@ public class MoveToPointHandler extends AbstractClientMsgHandler {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
ChatManager.chatSystemInfo(pc, "No Collision Detected");
|
||||
//ChatManager.chatSystemInfo(pc, "No Collision Detected");
|
||||
MovementManager.movement(msg, pc);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user