aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-01-06 12:53:26 +0100
committerCrozet Sébastien <developer@crozet.re>2021-01-06 12:53:26 +0100
commit261ed1ebed04fb594f612b66811350f63b73f104 (patch)
tree122515e7ebebe07876960438c4362c1af02ff728 /src/pipeline
parentd1ed279c4e70c46928c84cf9b7f4a1db539fd7cb (diff)
downloadrapier-261ed1ebed04fb594f612b66811350f63b73f104.tar.gz
rapier-261ed1ebed04fb594f612b66811350f63b73f104.tar.bz2
rapier-261ed1ebed04fb594f612b66811350f63b73f104.zip
Fix 2D compilation.
Diffstat (limited to 'src/pipeline')
-rw-r--r--src/pipeline/query_pipeline.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pipeline/query_pipeline.rs b/src/pipeline/query_pipeline.rs
index 9e20088..5e0b2ea 100644
--- a/src/pipeline/query_pipeline.rs
+++ b/src/pipeline/query_pipeline.rs
@@ -58,7 +58,7 @@ impl<'a> TypedSimdCompositeShape for QueryPipelineAsCompositeShape<'a> {
fn map_untyped_part_at(
&self,
shape_id: Self::PartId,
- mut f: impl FnMut(Option<&Isometry<Real>>, &Self::PartShape),
+ f: impl FnMut(Option<&Isometry<Real>>, &Self::PartShape),
) {
self.map_typed_part_at(shape_id, f);
}
@@ -216,7 +216,7 @@ impl QueryPipeline {
}
/// Find up to one collider intersecting the given shape.
- fn intersection_with_shape(
+ pub fn intersection_with_shape(
&self,
colliders: &ColliderSet,
shape_pos: &Isometry<Real>,
@@ -237,7 +237,7 @@ impl QueryPipeline {
}
/// Projects a point on the scene.
- fn project_point(
+ pub fn project_point(
&self,
colliders: &ColliderSet,
point: &Point<Real>,
@@ -279,7 +279,7 @@ impl QueryPipeline {
}
/// Projects a point on the scene and get
- fn project_point_and_get_feature(
+ pub fn project_point_and_get_feature(
&self,
colliders: &ColliderSet,
point: &Point<Real>,