EPhysics: fix indenting and remove useless lines

No need to set to 0 zeroed memory.



SVN revision: 75569
This commit is contained in:
Bruno Dilly 2012-08-22 20:05:07 +00:00
parent 5044cf3501
commit f5891500b0
2 changed files with 4 additions and 8 deletions

View File

@ -239,8 +239,6 @@ _ephysics_body_add(EPhysics_World *world, btCollisionShape *collision_shape, con
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;

View File

@ -282,8 +282,7 @@ _simulate_worlds(void *data __UNUSED__)
world->fixed_time_step);
else
((btDiscreteDynamicsWorld *)world->dynamics_world)->stepSimulation(
delta, world->max_sub_steps,
world->fixed_time_step);
delta, world->max_sub_steps, world->fixed_time_step);
world->walking--;
@ -562,7 +561,6 @@ ephysics_world_new(void)
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;