Minecrablox
(Minecrablox)
December 29, 2022, 12:03am
#1
Hello,
I have been sitting for hours trying to figure out why would my monster keep getting stuck into rocks and trees when there are Pathfinding Modifiers
in each of the MeshParts
. Here is the part where it get stuck several times:
Here is my AgentParams
:
local lurker_agentParams = {
AgentRadius = 6,
AgentCanJump = true,
AgentCanClimb = true,
Costs = {
avoid = 10.0,
collectables = 5.0,
wall = 10.0
}
}
All of the Costs
are named 100% according to the labels.
For the work of the PathFinding, I use this module:
https://create.roblox.com/marketplace/asset/6744337775/SimplePath-Pathfinding-Module
Any sort of advice would be appreciated. Thank you.
1 Like
eatabler0ck
(eatablerock)
December 29, 2022, 12:12am
#2
Question. What is the RenderFidelity
on these mesh parts? That may effect collisions.
1 Like
Minecrablox
(Minecrablox)
December 29, 2022, 12:15am
#3
So, the RenderFidelity
is on Precise
. Any idea what that may do?
eatabler0ck
(eatablerock)
December 29, 2022, 12:17am
#4
How about CollisionFidelity? What is that set to? If not already, try setting it to PreciseConvexDecompition.
Minecrablox
(Minecrablox)
December 29, 2022, 12:18am
#5
I have tried setting to that setting, but the monster still runs into the rock like a clumsy goat. Are the agent params an issue though?
eatabler0ck
(eatablerock)
December 29, 2022, 12:18am
#6
Have you already tried using PathfindingModifiers?
Minecrablox
(Minecrablox)
December 29, 2022, 12:20am
#7
Used those in all of the rocks and tree trunks. Here is a rock one:
The label is
wall
, which matches the
Costs
.
eatabler0ck
(eatablerock)
December 29, 2022, 12:20am
#8
Interesting, maybe try increasing the cost values?
Minecrablox
(Minecrablox)
December 29, 2022, 12:21am
#9
All modifiers were tested PassThrough
on both booleans.
Minecrablox
(Minecrablox)
December 29, 2022, 12:22am
#10
I have once increased to math.huge
, then as high as up to 50.0
. Anything wrong with them? Because the monster still manages to get stuck going in a loop near a tree.
eatabler0ck
(eatablerock)
December 29, 2022, 12:24am
#11
What happens when you set CollisionFidelity to Box? Have you tried it, and if so, what happened?
Minecrablox
(Minecrablox)
December 29, 2022, 12:27am
#12
Still manages to run into the rocks. I do not know if the problem could either be related to the meshes, the params, or the SimplePath module itself. But if you did look at it, is there something thats wacky?
eatabler0ck
(eatablerock)
December 29, 2022, 12:29am
#13
In that case, it might be the module that is the issue.
Im sorry, but I have no clue what else it could be.
eatabler0ck
(eatablerock)
December 29, 2022, 12:30am
#14
If the monster doesnt have to jump, maybe set the CanJump to false.
Thats the only thing I could think to do.