diff --git a/src/deferred.rs b/src/deferred.rs index ef799dc..49a1eff 100644 --- a/src/deferred.rs +++ b/src/deferred.rs @@ -164,8 +164,12 @@ pub struct RaycastMesh { } impl RaycastMesh { - /// Get a reference to the ray cast source's intersections. Returns an empty list if there are - /// no intersections. + /// Get a reference to the ray cast source's intersections. + /// + /// Here the [`Entity`] is the entity of the [`RaycastSource`] component. + /// Returns the list of intersections with all the sources with matching generic parameter + /// that intersected this mesh during the last raycast system run. + /// Returns an empty list if there are no intersections. pub fn intersections(&self) -> &[(Entity, IntersectionData)] { &self.intersections }