summaryrefslogtreecommitdiff
path: root/legacy/ephysics/src/lib/ephysics_body.cpp
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-11-28 21:47:30 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-11-28 21:47:30 +0000
commit704173e5397c72b57b687c0c42c03f98f4b61c29 (patch)
treeebe17deda0d926b2ed1c615b3425f32e84efbbe3 /legacy/ephysics/src/lib/ephysics_body.cpp
parenta4cfabdc2a472bd009a68cbe5b18ccc12070fdda (diff)
ephysics: don't allow a body to be scaled to 0 in any
axis In this case it will be considered inactive and things won't work as expected. SVN revision: 79789
Diffstat (limited to '')
-rw-r--r--legacy/ephysics/src/lib/ephysics_body.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp
index a636dc43cd..78600916d4 100644
--- a/legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/legacy/ephysics/src/lib/ephysics_body.cpp
@@ -1050,9 +1050,9 @@ _ephysics_body_geometry_set(EPhysics_Body *body, Evas_Coord x, Evas_Coord y, Eva
1050 mx = (x + w * body->cm.x) / rate; 1050 mx = (x + w * body->cm.x) / rate;
1051 my = (height - (y + h * body->cm.y)) / rate; 1051 my = (height - (y + h * body->cm.y)) / rate;
1052 mz = (z + d * body->cm.z) / rate; 1052 mz = (z + d * body->cm.z) / rate;
1053 sx = w / rate; 1053 sx = (w <= 0) ? 1 : w / rate;
1054 sy = h / rate; 1054 sy = (h <= 0) ? 1 : h / rate;
1055 sz = d / rate; 1055 sz = (d <= 0) ? 1 : d / rate;
1056 1056
1057 trans = _ephysics_body_transform_get(body); 1057 trans = _ephysics_body_transform_get(body);
1058 trans.setOrigin(btVector3(mx, my, mz)); 1058 trans.setOrigin(btVector3(mx, my, mz));