Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Walking Around Corners #1730
When player NPCs reach a barrier that they are meant to walk around, they sometimes get too close to the walls and prevent themselves from properly walking around. This has effects ranging anywhere from sliding sideways along a wall until they forcibly pass it to the more extreme cases of slamming into a corner and never continuing, as shown in the screenshot below.
You can use
Non-player NPCs seem relatively unaffected by this, and can navigate the maze without issue.
A likely irrelevant side note: this issue exists both with
This is a fairly problematic issue.
The NPC was able to open the door and walk through (traveling straight east), but then when asked to turn around and go back through (traveling west with a bit of angle) it just slams into the wall
EDIT2: my general guess while looking at how it moves is that the NPC misunderstands its own precise position and is going for integer block coords instead.
As demonstration of that guess: here is the NPC being asked to walk due west (negative X) to the stone block (specifically: the centerpoint of the airblock above the stone):
I notice when walking towards the door from the wrong side going straight through, it will for a moment turn towards the corner then reorient itself straight, quick enough that it actually manages to get through (when it doesn't actually need to rotate to get through). When there's even the slightest bit of angle (I'm testing with a roughly 30 degree angle here) it will get stuck on the wall, as it fails to achieve rotating at the correct time.