#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "ephysics_test.h"
static void
_update_object_cb(
void *data __UNUSED__,
EPhysics_Body *body,
void *event_info __UNUSED__)
{
double x, y, z, torque, vx, vy, vz, va;
DBG(
"Body %p, fx: %lf, fy: %lf, fz: %lf, torque: %lf", body, x, y, z,
torque);
DBG(
"Body %p, vx: %lf, vy: %lf, vz: %lf, va: %lf", body, vx, vy, vz, va);
}
static void
_world_populate(Test_Data *test_data)
{
box1, PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj", "blue-cube");
_update_object_cb, NULL);
box2, PACKAGE_DATA_DIR "/" EPHYSICS_TEST_THEME ".edj", "purple-cube");
_update_object_cb, NULL);
test_data->data = box_body2;
}
static void
_restart(
void *data,
Evas_Object *obj __UNUSED__,
const char *emission __UNUSED__,
const char *source __UNUSED__)
{
Test_Data *test_data = data;
test_clean(test_data);
_world_populate(test_data);
}
void
test_forces(
void *data __UNUSED__,
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
Test_Data *test_data;
return;
test_data = test_data_new();
test_win_add(test_data,
"Forces",
EINA_TRUE);
_restart, test_data);
WIDTH - 100, FLOOR_Y - 40, DEPTH);
test_data->world = world;
_world_populate(test_data);
}