From 21e6264deb1a9898b6d98e20bcf6c15a9aeca271 Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Wed, 10 Oct 2012 19:18:02 +0000 Subject: [PATCH] ephysics: fix z position on geometry set using cm SVN revision: 77784 --- legacy/ephysics/src/lib/ephysics_body.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp index 319bacbc97..aa66cbc916 100644 --- a/legacy/ephysics/src/lib/ephysics_body.cpp +++ b/legacy/ephysics/src/lib/ephysics_body.cpp @@ -904,7 +904,7 @@ _ephysics_body_geometry_set(EPhysics_Body *body, Evas_Coord x, Evas_Coord y, Eva mx = (x + w * body->cm.x) / rate; my = (height - (y + h * body->cm.y)) / rate; - mz = z / rate; + mz = (z + d * body->cm.z) / rate; sx = w / rate; sy = h / rate; sz = d / rate;