summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-15 21:54:22 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-15 21:54:22 +0000
commit9447db42d889c3bbd59f800093bb23352abc4a5b (patch)
treeb08a58c5bf60911c9ce1160585e8cf7dd1d6b59e /legacy
parentf6e0e9a3f5a33f40731ffe3ff339d2931ace4825 (diff)
ephysics: fix boundaries position
SVN revision: 78014
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ephysics/src/lib/ephysics_body.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp
index 258d88c473..90f81fa096 100644
--- a/legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/legacy/ephysics/src/lib/ephysics_body.cpp
@@ -1772,15 +1772,15 @@ ephysics_body_world_boundaries_resize(EPhysics_World *world)
1772 1772
1773 right = ephysics_world_boundary_get(world, EPHYSICS_WORLD_BOUNDARY_RIGHT); 1773 right = ephysics_world_boundary_get(world, EPHYSICS_WORLD_BOUNDARY_RIGHT);
1774 if (right) 1774 if (right)
1775 ephysics_body_geometry_set(right, x + width, 0, -5, 10, y + height, 10); 1775 ephysics_body_geometry_set(right, x + width, y, -5, 10, height, 10);
1776 1776
1777 left = ephysics_world_boundary_get(world, EPHYSICS_WORLD_BOUNDARY_LEFT); 1777 left = ephysics_world_boundary_get(world, EPHYSICS_WORLD_BOUNDARY_LEFT);
1778 if (left) 1778 if (left)
1779 ephysics_body_geometry_set(left, x - 10, 0, -5, 10, y + height, 10); 1779 ephysics_body_geometry_set(left, x - 10, y, -5, 10, height, 10);
1780 1780
1781 top = ephysics_world_boundary_get(world, EPHYSICS_WORLD_BOUNDARY_TOP); 1781 top = ephysics_world_boundary_get(world, EPHYSICS_WORLD_BOUNDARY_TOP);
1782 if (top) 1782 if (top)
1783 ephysics_body_geometry_set(top, 0, y - 10, -5, x + width, 10, 10); 1783 ephysics_body_geometry_set(top, x, y - 10, -5, width, 10, 10);
1784} 1784}
1785 1785
1786static EPhysics_Body * 1786static EPhysics_Body *
@@ -1817,7 +1817,7 @@ ephysics_body_top_boundary_add(EPhysics_World *world)
1817 1817
1818 ephysics_world_render_geometry_get(world, &x, &y, &w, NULL); 1818 ephysics_world_render_geometry_get(world, &x, &y, &w, NULL);
1819 body = _ephysics_body_boundary_add(world, EPHYSICS_WORLD_BOUNDARY_TOP, 1819 body = _ephysics_body_boundary_add(world, EPHYSICS_WORLD_BOUNDARY_TOP,
1820 0, y - 10, x + w, 10); 1820 x, y - 10, w, 10);
1821 return body; 1821 return body;
1822} 1822}
1823 1823
@@ -1841,7 +1841,7 @@ ephysics_body_left_boundary_add(EPhysics_World *world)
1841 1841
1842 ephysics_world_render_geometry_get(world, &x, &y, NULL, &h); 1842 ephysics_world_render_geometry_get(world, &x, &y, NULL, &h);
1843 body = _ephysics_body_boundary_add(world, EPHYSICS_WORLD_BOUNDARY_LEFT, 1843 body = _ephysics_body_boundary_add(world, EPHYSICS_WORLD_BOUNDARY_LEFT,
1844 x - 10, 0, 10, y + h); 1844 x - 10, y, 10, h);
1845 return body; 1845 return body;
1846} 1846}
1847 1847
@@ -1853,7 +1853,7 @@ ephysics_body_right_boundary_add(EPhysics_World *world)
1853 1853
1854 ephysics_world_render_geometry_get(world, &x, &y, &w, &h); 1854 ephysics_world_render_geometry_get(world, &x, &y, &w, &h);
1855 body = _ephysics_body_boundary_add(world, EPHYSICS_WORLD_BOUNDARY_RIGHT, 1855 body = _ephysics_body_boundary_add(world, EPHYSICS_WORLD_BOUNDARY_RIGHT,
1856 x + w, 0, 10, y + h); 1856 x + w, y, 10, h);
1857 return body; 1857 return body;
1858} 1858}
1859 1859