Skip to main content

scene_queries_point_projection

Point projection will either project a point on the closest collider of the scene (QueryPipeline::project_pointRapierContext::project_pointWorld.projectPoint), or will enumerate every collider containing given point (QueryPipeline::intersections_with_pointRapierContext::intersections_with_pointWorld.intersectionsWithPoint).

<load path='/2d/rust/examples/rs_scene_queries2.rs' marker='PointProjection' />
<load path='/2d/bevy/examples/scene_queries2.rs' marker='PointProjection' />
<load path='/2d/javascript/src/snippets/scene_queries.ts' marker='PointProjection' />

It is possible to only apply the scene query to a subsets of the colliders using a query filter