From 1a1890fabb559afbc693043f8ef782ec0b30f256 Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Wed, 28 Nov 2012 21:47:47 +0000 Subject: [PATCH] ephysics: add improve dbg msgs To help me debuging it while I'm working on Edje. SVN revision: 79790 --- legacy/ephysics/src/lib/ephysics_body.cpp | 3 +++ legacy/ephysics/src/lib/ephysics_world.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp index 78600916d4..25f86ab35c 100644 --- a/legacy/ephysics/src/lib/ephysics_body.cpp +++ b/legacy/ephysics/src/lib/ephysics_body.cpp @@ -3236,6 +3236,9 @@ ephysics_body_geometry_set(EPhysics_Body *body, Evas_Coord x, Evas_Coord y, Evas return; } + INF("Body: %p geometry set to x=%i y=%i z=%i w=%i h=%i d=%i.", + body, x, y, z, w, h, d); + if ((w <= 0) || (h <= 0) || (d <= 0)) { ERR("Width, height and depth must to be a non-null, positive value."); diff --git a/legacy/ephysics/src/lib/ephysics_world.cpp b/legacy/ephysics/src/lib/ephysics_world.cpp index a3b24863fd..8ee9481d5a 100644 --- a/legacy/ephysics/src/lib/ephysics_world.cpp +++ b/legacy/ephysics/src/lib/ephysics_world.cpp @@ -1240,6 +1240,9 @@ ephysics_world_render_geometry_set(EPhysics_World *world, Evas_Coord x, Evas_Coo world->geometry.h = h; world->geometry.d = d; + INF("World %p render geometry set: x=%i y=%i z=%i w=%i h=%i d=%i", + world, x, y, z, w, h, d); + ephysics_camera_perspective_set(world->camera, x + w / 2, y + h / 2, z + d / 2, 10 * (z + d));