goto err_rigid_body;
}
- body->soft_body = NULL;
- body->collision_groups = NULL;
body->collision_shape = collision_shape;
body->rigid_body = rigid_body;
body->mass = mass;
_ephysics_body_soft_body_points_distance_get(body, curr_distances);
- for (int m = 0; m < 4; m++)
+ for (int m = 0; m < 4; m++)
{
Evas_Coord px, py, pz;
double dx = 0, dy = 0;
if (world->soft_body_ref)
world->dynamics_world->stepSimulation(delta, world->max_sub_steps,
- world->fixed_time_step);
- else
- ((btDiscreteDynamicsWorld *)world->dynamics_world)->stepSimulation(
- delta, world->max_sub_steps,
world->fixed_time_step);
+ else
+ ((btDiscreteDynamicsWorld *)world->dynamics_world)->stepSimulation(
+ delta, world->max_sub_steps, world->fixed_time_step);
world->walking--;
else
world->dynamics_world->getPairCache()->setOverlapFilterCallback(filter_cb);
- world->soft_body_ref = 0;
world->rate = 30;
world->max_sub_steps = 3;
world->fixed_time_step = 1/60.f;