#include <ContactImpulsesList.hpp>
Public Types | |
using | Counter = std::remove_const< decltype(MaxManifoldPoints)>::type |
Counter type. | |
Public Member Functions | |
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. | |
void | AddEntry (Momentum normal, Momentum tangent) noexcept |
Adds an entry of the given data. | |
Private Attributes | |
Momentum | normalImpulses [MaxManifoldPoints] |
Normal impulses. | |
Momentum | tangentImpulses [MaxManifoldPoints] |
Tangent impulses. | |
Counter | count = 0 |
Count of entries added. | |
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. | |
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.