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
@@ -47,7 +47,7 @@ public class MoveToPointHandler extends AbstractClientMsgHandler {
HashSet<AbstractWorldObject> awoList = WorldGrid.getObjectsInRangePartial(pc.loc, movementDistance, MBServerStatics.MASK_BUILDING);
for(AbstractWorldObject awo : awoList){
Building building = (Building)awo;
if(CollisionManager.CollisionDetected(building, travelLine,pc.getCharacterHeight())){
if(CollisionManager.CollisionDetected(building, travelLine,pc.getCharacterHeight(),pc.loc.y)){
ChatManager.chatSystemInfo(pc, "Collision Detected");
//msg.setEndCoord();
MovementManager.movement(msg, pc);