Skip to content

Commit

Permalink
I think this is this calculations final form. Also cleaned it up a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Untrustedlife committed Dec 17, 2018
1 parent 5a4db27 commit 31185a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/microbe_stage/microbe_editor/microbe_editor.as
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31185a6

Please sign in to comment.