#Roblox pathfinding finds paths through gaps that are too narrow and the NPC gets stuck
1 messages · Page 1 of 1 (latest)
what are the agent parameters you're using?
local ModelSize = Rig:GetExtentsSize()
local AgentRadius = math.max(ModelSize.X, ModelSize.Z) * 0.5
local AgentHeight = ModelSize.Y
local Path = C.PathfindingService:CreatePath({
AgentRadius = AgentRadius,
AgentHeight = AgentHeight,
AgentCanJump = false,
AgentCanClimb = false,
})
increase the agentradius maybe?
I have tried changing the agent radius alot but no matter what it is the same result
unless I make the rig really big in which case it always returns no path even for obviously clear paths
Not really. Does it matter how many parts/how big the map is?
probably
i haven't done much pathfinding
is the map made out of parts or are there unions or meshes?
maybe its struggling with those
its alot of models and meshes
** You are now Level 4! **