#include <playrho/d2/ContactImpulsesList.hpp>
Public Types | |
using | Counter = std::remove_const_t< decltype(MaxManifoldPoints)> |
Counter type. | |
Public Member Functions | |
void | AddEntry (Momentum normal, Momentum tangent) noexcept |
Adds an entry of the given data. | |
Counter | GetCount () const noexcept |
Gets the count. | |
Momentum | GetEntryNormal (Counter index) const noexcept |
Gets the given indexed entry normal. | |
Momentum | GetEntryTanget (Counter index) const noexcept |
Gets the given indexed entry tangent. | |
Related Functions | |
(Note that these are not member functions.) | |
Momentum | GetMaxNormalImpulse (const ContactImpulsesList &impulses) noexcept |
Gets the maximum normal impulse from the given contact impulses list. | |
The contact impulse.
Used for reporting. Impulses are used instead of forces because sub-step forces may approach infinity for rigid body collisions. These match up one-to-one with the contact points in Manifold.