From c99209a38dc0b851e629a3918bee95742db6f3b6 Mon Sep 17 00:00:00 2001 From: kraftwer1 Date: Tue, 15 Oct 2024 15:48:26 +0200 Subject: [PATCH 1/2] Possible typo? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm just going through your example – thanks a lot, I really enjoy learning WGSL through bevy_hanabi! One little thing that confused me: the comments state that there is a radius of "2 units", however the code says it's 0.5. Is there something I didn't get or is this a simple typo? --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9bbc8a19..d917507a 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ fn setup(mut effects: ResMut>) { // to be over the surface of a sphere of radius 2 units. let init_pos = SetPositionSphereModifier { center: module.lit(Vec3::ZERO), - radius: module.lit(0.05), + radius: module.lit(2.), dimension: ShapeDimension::Surface, }; From 7578d225b534b0510be1a47e54202869c945f1de Mon Sep 17 00:00:00 2001 From: kraftwer1 Date: Thu, 17 Oct 2024 17:35:07 +0200 Subject: [PATCH 2/2] Update lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1796342d..83425131 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,7 +75,7 @@ //! // to be over the surface of a sphere of radius 2 units. //! let init_pos = SetPositionSphereModifier { //! center: module.lit(Vec3::ZERO), -//! radius: module.lit(0.05), +//! radius: module.lit(2.), //! dimension: ShapeDimension::Surface, //! }; //!