aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-15 21:55:14 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-15 21:55:14 +0000
commit325c34006054d43fb341d9fc28543046d6bc5766 (patch)
treec955634a37215e7d61a073f82c0cede13af9a618
parenta192bd1e1a81ec87cd2ca8ce6545679dd076368b (diff)
downloadenlightenment-325c34006054d43fb341d9fc28543046d6bc5766.tar.gz
enlightenment-325c34006054d43fb341d9fc28543046d6bc5766.tar.xz
enlightenment-325c34006054d43fb341d9fc28543046d6bc5766.zip
e/physics: fix render geometry set
SVN revision: 78018
-rw-r--r--src/modules/physics/e_mod_physics.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/physics/e_mod_physics.c b/src/modules/physics/e_mod_physics.c
index d207e19b0..3eb7dd833 100644
--- a/src/modules/physics/e_mod_physics.c
+++ b/src/modules/physics/e_mod_physics.c
@@ -662,7 +662,8 @@ _e_mod_physics_randr(void *data __UNUSED__,
E_Physics *p;
EINA_LIST_FOREACH(physicists, l, p)
- ephysics_world_render_geometry_set(p->world, 0, 0, p->man->w, p->man->h);
+ ephysics_world_render_geometry_set(p->world, 0, 0, -5,
+ p->man->w, p->man->h, 10);
return ECORE_CALLBACK_PASS_ON;
}
@@ -793,7 +794,6 @@ _e_mod_physics_bd_uniconify(void *data __UNUSED__,
static E_Physics *
_e_mod_physics_add(E_Manager *man)
{
- const int boundary_depth = 10;
E_Physics *p;
EPhysics_Body *bound;
Eina_List *l;
@@ -806,19 +806,19 @@ _e_mod_physics_add(E_Manager *man)
p->world = ephysics_world_new();
/* TODO: world per zone */
DBG("PHYS: world++ || %dx%d\n", man->w, man->h);
- ephysics_world_render_geometry_set(p->world, 0, 0, man->w, man->h);
+ ephysics_world_render_geometry_set(p->world, 0, 0, -5, man->w, man->h, 10);
ephysics_world_gravity_set(p->world, 0, _physics_mod->conf->gravity, 0);
- bound = ephysics_body_left_boundary_add(p->world, boundary_depth);
+ bound = ephysics_body_left_boundary_add(p->world);
ephysics_body_restitution_set(bound, 1);
ephysics_body_friction_set(bound, 3);
- bound = ephysics_body_right_boundary_add(p->world, boundary_depth);
+ bound = ephysics_body_right_boundary_add(p->world);
ephysics_body_restitution_set(bound, 1);
ephysics_body_friction_set(bound, 3);
- bound = ephysics_body_top_boundary_add(p->world, boundary_depth);
+ bound = ephysics_body_top_boundary_add(p->world);
ephysics_body_restitution_set(bound, 1);
ephysics_body_friction_set(bound, 3);
- bound = ephysics_body_bottom_boundary_add(p->world, boundary_depth);
+ bound = ephysics_body_bottom_boundary_add(p->world);
ephysics_body_restitution_set(bound, 1);
ephysics_body_friction_set(bound, 3);