simplified list_foreach loop with a single-line body
This commit is contained in:
parent
fccd08466a
commit
f11ffc13ff
|
@ -56,10 +56,8 @@ int _internal_default_contact_solver(RigidBody* body, Contact* contact, Transfor
|
|||
void physics_entity_apply_collision_forces(PhysicsEntity self, List* contacts) {
|
||||
RigidBody* body = self.tc->get_rigidbody(self.data);
|
||||
// apply collision impulse
|
||||
list_foreach(Contact, contact, contacts) {
|
||||
list_foreach(Contact, contact, contacts)
|
||||
rigidbody_add_impulse(body, _internal_calculate_contact_force(body, contact), 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void physics_entity_solve_contacts(PhysicsEntity self, List* contacts) {
|
||||
|
|
Loading…
Reference in a new issue