From 5fa358a465d32d1420a8cdfd23dd1a88ca4ae797 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 14 Jan 2025 13:32:02 +0100 Subject: feat(engine): add simple collision --- engine/src/vertex.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engine/src/vertex.rs') diff --git a/engine/src/vertex.rs b/engine/src/vertex.rs index 897ee97..5739323 100644 --- a/engine/src/vertex.rs +++ b/engine/src/vertex.rs @@ -7,11 +7,12 @@ builder! { #[builder(name = Builder, derives = (Debug, Default))] #[derive(Debug, Clone, Default)] #[repr(C)] +#[non_exhaustive] pub struct Vertex { - pos: Vec3, - texture_coords: Vec2, - normal: Vec3, + pub pos: Vec3, + pub texture_coords: Vec2, + pub normal: Vec3, } } -- cgit v1.2.3-18-g5258