From 6cc651ed8f65c7797bca4e0489826b7f7fc8370a Mon Sep 17 00:00:00 2001 From: Mateusz Stulczewski Date: Wed, 16 Jul 2025 20:47:29 +0200 Subject: [PATCH] docs: update documentation --- crates/bevy_math/src/ray.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/bevy_math/src/ray.rs b/crates/bevy_math/src/ray.rs index 49d6376e95..b3fd27b77b 100644 --- a/crates/bevy_math/src/ray.rs +++ b/crates/bevy_math/src/ray.rs @@ -55,7 +55,7 @@ impl Ray2d { } } -/// Defines if the Ray3d should intersect the plane only on the front face, back face, or both. +/// Controls which faces of the plane a ray can intersect. #[derive(Clone, Copy, Debug, PartialEq, Eq)] #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr( @@ -68,9 +68,11 @@ impl Ray2d { reflect(Deserialize, Serialize) )] pub enum PlaneIntersectionMode { - /// Intersects only the front face of the plane. + /// Intersects only the front face of the plane + /// (the side from which the plane normal points towards the ray). FrontFaceOnly, - /// Intersects only the back face of the plane. + /// Intersects only the back face of the plane + /// (the side opposite to the normal). BackFaceOnly, /// Intersects both faces of the plane. Both,