From 31185a60973f48cc2afc9a1096981faef4b8856c Mon Sep 17 00:00:00 2001 From: Untrustedlife Date: Sun, 16 Dec 2018 20:34:11 -0600 Subject: [PATCH] I think this is this calculations final form. Also cleaned it up a bit. --- scripts/microbe_stage/microbe_editor/microbe_editor.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/microbe_stage/microbe_editor/microbe_editor.as b/scripts/microbe_stage/microbe_editor/microbe_editor.as index f2aa9f753d9..88c04c2d64c 100644 --- a/scripts/microbe_stage/microbe_editor/microbe_editor.as +++ b/scripts/microbe_stage/microbe_editor/microbe_editor.as @@ -905,7 +905,8 @@ class MicrobeEditor{ } //This is complex, i Know //LOG_INFO(""+flagCount); - finalSpeed= ((CELL_BASE_THRUST+((flagCount/lengthMicrobe)*FLAGELLA_BASE_FORCE))+(CELL_DRAG_MULTIPLIER-(CELL_SIZE_DRAG_MULTIPLIER*lengthMicrobe))); + finalSpeed= ((CELL_BASE_THRUST+((flagCount/(lengthMicrobe-flagCount))*FLAGELLA_BASE_FORCE))+ + (CELL_DRAG_MULTIPLIER-(CELL_SIZE_DRAG_MULTIPLIER*lengthMicrobe))); return finalSpeed; } // Maybe i should do this in the non-editor code instead, to make sure its more decoupled from the player