Hi!
I’ve been developing an AI but ran into a little issue with pathfinding waypoints.
It looks like PathfindingService is generating a path with a bunch of tightly packed waypoints in a line (hold note lookin’)
I’ve tried looking for other posts like this but couldn’t find anyone with this issue.
My code has also set WaypointSpacing to 8, which does work, but still these “hold note” paths are made
Does anyone know what could cause this?
(Here’s the path that it uses for context)
local PathfindingService = game:GetService("PathfindingService")
local path = PathfindingService:CreatePath({
AgentRadius = 5,
AgentHeight = 5,
AgentCanJump = false,
WaypointSpacing = 8,
Costs = {
Water = 20,
Mud = 2,
Grass = 2,
ForestGrass = 2,
Ground = 2,
LeafyGrass2= 2,
Snow = 2,
Sand = 2,
}
})
The AI individually walks to each one and stutters over it so I’d like those to not happen!