From 7df2256f35fdf6925e2499966774d3a9a861e69c Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 25 Aug 2023 03:19:11 -0500 Subject: add failing test for that weird diagonal edge case aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --- azalea-entity/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'azalea-entity/src') diff --git a/azalea-entity/src/lib.rs b/azalea-entity/src/lib.rs index db42a0ba..fc312f79 100644 --- a/azalea-entity/src/lib.rs +++ b/azalea-entity/src/lib.rs @@ -257,6 +257,11 @@ pub struct Dead; /// an entity, and when raycasting from the entity. #[derive(Component, Clone, Copy, Debug, PartialEq, Deref, DerefMut)] pub struct EyeHeight(f32); +impl EyeHeight { + pub fn new(height: f32) -> Self { + Self(height) + } +} impl From for f32 { fn from(value: EyeHeight) -> Self { value.0 -- cgit v1.2.3