summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorLeandro Dorileo <dorileo@profusion.mobi>2012-10-04 22:40:29 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-04 22:40:29 +0000
commit8079624030299b0fc6863e21bea031c78528c45c (patch)
tree402f100cc87c7ca9c0cc452f1a564450398001f2 /legacy
parent252643a33b65af308f3084ddc407459221e96677 (diff)
EPhysics: soft body test
Soft Body Test, add smart soft bodies in the list for exclusion. Patch by: Leandro Dorileo <dorileo@profusion.mobi> SVN revision: 77468
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ephysics/src/bin/test_soft_body.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/ephysics/src/bin/test_soft_body.c b/legacy/ephysics/src/bin/test_soft_body.c
index 7c11ec1..62a21a5 100644
--- a/legacy/ephysics/src/bin/test_soft_body.c
+++ b/legacy/ephysics/src/bin/test_soft_body.c
@@ -28,12 +28,13 @@ _world_populate(Test_Data *test_data)
28 28
29 fall_body = ephysics_body_soft_circle_add(test_data->world); 29 fall_body = ephysics_body_soft_circle_add(test_data->world);
30 ephysics_body_soft_body_hardness_set(fall_body, 10); 30 ephysics_body_soft_body_hardness_set(fall_body, 10);
31 ephysics_body_evas_object_set(fall_body, evas_obj, EINA_TRUE); 31 evas_obj = ephysics_body_evas_object_set(fall_body, evas_obj, EINA_TRUE);
32 ephysics_body_restitution_set(fall_body, 0.95); 32 ephysics_body_restitution_set(fall_body, 0.95);
33 ephysics_body_friction_set(fall_body, 0.1); 33 ephysics_body_friction_set(fall_body, 0.1);
34 ephysics_body_event_callback_add(fall_body, EPHYSICS_CALLBACK_BODY_UPDATE, 34 ephysics_body_event_callback_add(fall_body, EPHYSICS_CALLBACK_BODY_UPDATE,
35 update_object_cb, shadow); 35 update_object_cb, shadow);
36 test_data->bodies = eina_list_append(test_data->bodies, fall_body); 36 test_data->bodies = eina_list_append(test_data->bodies, fall_body);
37 test_data->evas_objs = eina_list_append(test_data->evas_objs, evas_obj);
37 38
38 shadow = elm_layout_add(test_data->win); 39 shadow = elm_layout_add(test_data->win);
39 elm_layout_file_set( 40 elm_layout_file_set(
@@ -53,12 +54,13 @@ _world_populate(Test_Data *test_data)
53 54
54 fall_body = ephysics_body_soft_circle_add(test_data->world); 55 fall_body = ephysics_body_soft_circle_add(test_data->world);
55 ephysics_body_soft_body_hardness_set(fall_body, 30); 56 ephysics_body_soft_body_hardness_set(fall_body, 30);
56 ephysics_body_evas_object_set(fall_body, evas_obj, EINA_TRUE); 57 evas_obj = ephysics_body_evas_object_set(fall_body, evas_obj, EINA_TRUE);
57 ephysics_body_restitution_set(fall_body, 0.95); 58 ephysics_body_restitution_set(fall_body, 0.95);
58 ephysics_body_friction_set(fall_body, 0.1); 59 ephysics_body_friction_set(fall_body, 0.1);
59 ephysics_body_event_callback_add(fall_body, EPHYSICS_CALLBACK_BODY_UPDATE, 60 ephysics_body_event_callback_add(fall_body, EPHYSICS_CALLBACK_BODY_UPDATE,
60 update_object_cb, shadow); 61 update_object_cb, shadow);
61 test_data->bodies = eina_list_append(test_data->bodies, fall_body); 62 test_data->bodies = eina_list_append(test_data->bodies, fall_body);
63 test_data->evas_objs = eina_list_append(test_data->evas_objs, evas_obj);
62 64
63 shadow = elm_layout_add(test_data->win); 65 shadow = elm_layout_add(test_data->win);
64 elm_layout_file_set( 66 elm_layout_file_set(