See this code section: https://github.com/dimforge/rapier/blob/0b7c3b34ecacff70070cd697fe7a51638855e5ba/src/pipeline/query_pipeline.rs#L345C1-L353C6 If the parameter is not used, either remove it or add a check to respect the `max_dist`.