From 5a86f11beb1a712adc69c61118616dd2d970627e Mon Sep 17 00:00:00 2001 From: Nova Date: Mon, 7 Aug 2023 16:45:37 -0400 Subject: [PATCH] fix(fields): remove radius from normal/closest point --- src/nodes/fields/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nodes/fields/mod.rs b/src/nodes/fields/mod.rs index f3553ee..14e3bcc 100644 --- a/src/nodes/fields/mod.rs +++ b/src/nodes/fields/mod.rs @@ -162,7 +162,6 @@ fn field_normal_flex( struct FieldInfoArgs<'a> { reference_space_path: &'a str, point: Vector3, - radius: Option, } let args: FieldInfoArgs = deserialize(message.as_ref())?; let reference_space = find_reference_space(&calling_client, args.reference_space_path)?; @@ -170,7 +169,7 @@ fn field_normal_flex( let normal = node.field.get().as_ref().unwrap().normal( reference_space.as_ref(), args.point.into(), - args.radius.unwrap_or(0.001), + 0.001, ); Ok(serialize(mint::Vector3::from(normal))?.into()) } @@ -183,7 +182,6 @@ fn field_closest_point_flex( struct FieldInfoArgs<'a> { reference_space_path: &'a str, point: Vector3, - radius: Option, } let args: FieldInfoArgs = deserialize(message.as_ref())?; let reference_space = find_reference_space(&calling_client, args.reference_space_path)?; @@ -191,7 +189,7 @@ fn field_closest_point_flex( let closest_point = node.field.get().as_ref().unwrap().closest_point( reference_space.as_ref(), args.point.into(), - args.radius.unwrap_or(0.001), + 0.001, ); Ok(serialize(mint::Vector3::from(closest_point))?.into()) }