From eb8ff3ae1030e3215e530dd69c7c32bc517a511b Mon Sep 17 00:00:00 2001 From: Wouter van Wageningen Date: Thu, 26 Sep 2024 22:28:03 -0700 Subject: [PATCH] Update arm.mjs --- designs/octoplushy/src/arm.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designs/octoplushy/src/arm.mjs b/designs/octoplushy/src/arm.mjs index 75918db68fe..867330c05e3 100644 --- a/designs/octoplushy/src/arm.mjs +++ b/designs/octoplushy/src/arm.mjs @@ -28,9 +28,9 @@ function octoplushyArmSection( const sections = options.type == 'squid' ? 10 : 8 const sectionWidth = (w * 2) / sections - const armWidth = w * options.armWidth * (1 - options.bottomTopArmRatio) * 3.1415 + const armWidth = w * options.armWidth * (1 - options.bottomTopArmRatio) * Math.PI const armAdjustedWidth = armWidth * (1 - options.bottomTopArmRatio) - let armLength = ((w * 2) / 3.1415) * options.armLength + let armLength = ((w * 2) / Math.PI) * options.armLength switch (options.type) { case 'octopus': armLength *= 2