Skip to content

Commit

Permalink
Improved calculation more.
Browse files Browse the repository at this point in the history
  • Loading branch information
Untrustedlife committed Dec 17, 2018
1 parent 1664229 commit 5a4db27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@ class MicrobeEditor{
}
//This is complex, i Know
//LOG_INFO(""+flagCount);
finalSpeed= ((CELL_BASE_THRUST+((flagCount/4)*FLAGELLA_BASE_FORCE))-(abs(CELL_DRAG_MULTIPLIER)+(abs(CELL_SIZE_DRAG_MULTIPLIER)*lengthMicrobe)));
finalSpeed= ((CELL_BASE_THRUST+((flagCount/lengthMicrobe)*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 5a4db27

Please sign in to comment.