I need help converting a vector 3 to pathfind params i need to convert vector3 to agent radius and agent height

function converttoagentsize(size:Vector3)
	local raduis = math.max(size.X, size.Z)
	local height = size.Y
	return raduis, height
end

please help its not working right

What are you inputting for the size argument? I can only think of it working incorrectly if you’re not calculating the full height of the character

a vector 3 aka the size property

hold up i found a fix i used magnitude

function converttoagentsize(size:Vector3)
	local raduis = size.Magnitude / 2
	local height = raduis
	return raduis, height
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.