Attached is my pathfinding code
[HideInInspector] public float NPC_PathfindMoveCounter;
[HideInInspector] public Vector3 NPC_PathfindDir;
[HideInInspector] Vector3 NPC_PathfindDirCheck;
static Vector3 pathfindingFloorBoxSize = new Vector3(0.2f, 1.5f, 0.2f);
static Vector3 pathfindingWallBoxSize = new Vector3(0.2f, 1.0f, 0.2f);
static float pathfindingDistWall = 0.5f;
static LayerMask pathfindingLayermask = ~0;```
Here is all the other variables. Not included is code to move towards it, which is a simple ``CharacterController.move`` call. Anyway I could improve my pathfinding algorithm? I KNOW I should probably use the navmesh but I would rather not use that