From 962bebab6cfe9188b906c94da7ecab8b01f94141 Mon Sep 17 00:00:00 2001 From: Preston Date: Tue, 24 Sep 2024 21:36:12 -0500 Subject: [PATCH] Adjusted the distance check for players in player's path, effectively making the collision area of players larger. This can be changed in Bounds PlayerCollisionPoint method by increasing or decreasing the minDistance var. --- src/engine/math/Bounds.java | 2 +- src/engine/objects/PlayerCharacter.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/engine/math/Bounds.java b/src/engine/math/Bounds.java index 8be08bc4..8216057d 100644 --- a/src/engine/math/Bounds.java +++ b/src/engine/math/Bounds.java @@ -279,7 +279,7 @@ public class Bounds { // Now check for player collisions HashSet nearbyPlayers = WorldGrid.getObjectsInRangePartial(player, distance + 2, MBServerStatics.MASK_PLAYER); - float minDistance = 1.0f; // Minimum distance between players + float minDistance = 5.0f; // Minimum distance between players for (AbstractWorldObject awo : nearbyPlayers) { PlayerCharacter otherPlayer = (PlayerCharacter) awo; diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index f80a7c91..23ea1848 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -205,9 +205,6 @@ public class PlayerCharacter extends AbstractCharacter { this.guildStatus = new AtomicInteger(0); this.bindBuildingID = -1; - - Vector3fImmutable center = new Vector3fImmutable(0, 0, 0); - Vector3fImmutable extents = new Vector3fImmutable(0.5f, 1.0f, 0.5f); } /** @@ -5359,7 +5356,6 @@ public class PlayerCharacter extends AbstractCharacter { moveToMsg.setSourceType(GameObjectType.PlayerCharacter.ordinal()); moveToMsg.setSourceID(this.getObjectUUID()); - ChatManager.chatSystemInfo(this, "This is a test"); Dispatch dispatch = Dispatch.borrow(this, moveToMsg); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY);