449 |
ActorInfo &ai = *a->get_actorinfo(); |
ActorInfo &ai = *a->get_actorinfo(); |
450 |
V2 accel = get_accel(a, ai.pos, ai.vel, time); |
V2 accel = get_accel(a, ai.pos, ai.vel, time); |
451 |
|
|
|
cout << "#contacts: " << ai.contact_normals.size() << endl; |
|
|
|
|
452 |
// If the actor is currently in contact with other objects, remove |
// If the actor is currently in contact with other objects, remove |
453 |
// the force components in the direction of these objects. |
// the force components in the direction of these objects. |
454 |
for (unsigned i=0; i<ai.contact_normals.size(); ++i) |
for (unsigned i=0; i<ai.contact_normals.size(); ++i) |