From ef6cd2cd5110f08551ec8fee24c0a036525c6fcc Mon Sep 17 00:00:00 2001 From: Stanislaw Skowronek Date: Sat, 16 Nov 2013 20:55:25 -0500 Subject: :\ diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 3bf8fc9..3e739e5 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -5032,8 +5032,8 @@ void Simulation::update_solids() sld->cdx = sld->cx + sld->bpx[bd]; sld->cdy = sld->cy + sld->bpy[bd]; - mmx = -sld->bdx[bd]; - mmy = -sld->bdy[bd]; + mmx = -sld->bdx[bd] * 0.25f; + mmy = -sld->bdy[bd] * 0.25f; } else mmx = mmy = 0.0f; @@ -5099,6 +5099,8 @@ void Simulation::update_solids() rmy += parts[pp].vy - vy; parts[pp].vx = vx; parts[pp].vy = vy; + parts[pp].x += mmx; + parts[pp].y += mmy; } if(sld->bf && sld->bp[bd] != -1) { -- cgit v0.9.2-21-gd62e