Skip to content

Commit 610fe51

Browse files
authored
Update HitData position docs (#17833)
# Objective Updates the now inaccurate position docs Fixes #17832 ## Solution From `The position of the intersection in the world, if the data is available from the backend.` To `The position reported by the backend, if the data is available. Position data may be in any space (e.g. World space, Screen space, Local space), specified by the backend providing it.` ## Testing uhh reading :)
1 parent 0ede857 commit 610fe51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/bevy_picking/src/backend.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ pub struct HitData {
105105
/// distance from the pointer to the hit, measured from the near plane of the camera, to the
106106
/// point, in world space.
107107
pub depth: f32,
108-
/// The position of the intersection in the world, if the data is available from the backend.
108+
/// The position reported by the backend, if the data is available. Position data may be in any
109+
/// space (e.g. World space, Screen space, Local space), specified by the backend providing it.
109110
pub position: Option<Vec3>,
110111
/// The normal vector of the hit test, if the data is available from the backend.
111112
pub normal: Option<Vec3>,

0 commit comments

Comments
 (0)