Commit a1885e29 authored by Hubert Denkmair's avatar Hubert Denkmair
Browse files

implement new radius calc

parent edf0613a
......@@ -107,7 +107,10 @@ BotMoveHeadMoveStrategy.prototype.NewStyleMove = function(bot, mass, positions)
}
bot.SetLength(targetLength);
bot.SetScale(Math.sqrt(mass) / 2);
const new_radius = Math.pow((20*mass+100), 0.3) - 3.9810717055349722;
// 100**0.3 --------^
bot.SetScale(new_radius);
bot.UpdateHead();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment