From 36e85d0708e53a01731dfa95a9a2b4792ef03fe2 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sun, 2 Oct 2022 17:36:30 +0200 Subject: Add a character controller implementation --- src/pipeline/query_pipeline.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pipeline') diff --git a/src/pipeline/query_pipeline.rs b/src/pipeline/query_pipeline.rs index 86fa7b6..6cf646d 100644 --- a/src/pipeline/query_pipeline.rs +++ b/src/pipeline/query_pipeline.rs @@ -168,7 +168,7 @@ impl<'a> QueryFilter<'a> { } /// Exclude from the query any collider attached to a kinematic rigid-body. - pub fn exclude_dynamic(self) -> Self { + pub fn exclude_dynamic() -> Self { QueryFilterFlags::EXCLUDE_DYNAMIC.into() } @@ -705,6 +705,7 @@ impl QueryPipeline { shape_vel: &Vector, shape: &dyn Shape, max_toi: Real, + stop_at_penetration: bool, filter: QueryFilter, ) -> Option<(ColliderHandle, TOI)> { let pipeline_shape = self.as_composite_shape(bodies, colliders, filter); @@ -715,6 +716,7 @@ impl QueryPipeline { &pipeline_shape, shape, max_toi, + stop_at_penetration, ); self.qbvh.traverse_best_first(&mut visitor).map(|h| h.1) } -- cgit