X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fhost.cpp;h=fca3a304e545d29eefafd8201958020c92b6470e;hb=b7b1fdc12122e6573bb71b4435c06440a0677c2f;hp=c18f117ba11d3dc360328ad0eb539c3d4e8939ed;hpb=049518d751b3e2bada5af0bd1af63273e782775f;p=netvis.git diff --git a/source/host.cpp b/source/host.cpp index c18f117..fca3a30 100644 --- a/source/host.cpp +++ b/source/host.cpp @@ -100,8 +100,9 @@ void Host::tick(const Msp::Time::TimeDelta &td) return; const map &hosts = netvis.get_hosts(); - float fx = -pos.x*0.1; - float fy = -pos.y*0.1; + float center_force = (local ? 0.5 : 0.1); + float fx = -pos.x*center_force; + float fy = -pos.y*center_force; for(map::const_iterator i=hosts.begin(); i!=hosts.end(); ++i) { if(i->second!=this)