bugfixes less log messages

- fixed sudden acceleration of asteroids (wrong order of collision handling
	and resolving)
This commit is contained in:
2011-02-12 16:34:47 +01:00
parent 57ea0596b8
commit ce66a791af
7 changed files with 26 additions and 22 deletions
+2 -2
View File
@@ -107,12 +107,12 @@ int PhysicsBase::Simulate (float msec, ModelBase* model) {
// collision_remaining_step -= 1.0e-4;
} else {
Move (info.time * (1 - alpha));
LogDebug ("Resolving Step between %u and %u t = %f alpha = %f", entity_a_id, entity_b_id, info.time, alpha);
ResolveCollision (info.time * (1 - alpha), entity_a_id, entity_b_id, info);
// Send the collision event to the Model (if we have one)
if (model) {
model->SendEntityCollisionEvent (entity_a_id, entity_b_id, info.time, info.point, info.normal);
}
LogDebug ("Resolving Step between %u and %u t = %f alpha = %f", entity_a_id, entity_b_id, info.time, alpha);
ResolveCollision (info.time * (1 - alpha), entity_a_id, entity_b_id, info);
collision_remaining_step -= info.time * (1 - alpha);
}