#include <ContactImpulsesList.hpp>
Public Types | |
using | Counter = std::remove_const< decltype(MaxManifoldPoints)>::type |
Counter type. More... | |
Public Member Functions | |
Counter | GetCount () const noexcept |
Gets the count. More... | |
Momentum | GetEntryNormal (Counter index) const noexcept |
Gets the given indexed entry normal. More... | |
Momentum | GetEntryTanget (Counter index) const noexcept |
Gets the given indexed entry tangent. More... | |
void | AddEntry (Momentum normal, Momentum tangent) noexcept |
Adds an entry of the given data. More... | |
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. More... | |
Detailed Description
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.
- Examples
- World.cpp.
Definition at line 37 of file ContactImpulsesList.hpp.
Member Typedef Documentation
◆ Counter
using playrho::d2::ContactImpulsesList::Counter = std::remove_const<decltype(MaxManifoldPoints)>::type |
Counter type.
Definition at line 42 of file ContactImpulsesList.hpp.
Member Function Documentation
◆ GetCount()
|
inlinenoexcept |
Gets the count.
Definition at line 45 of file ContactImpulsesList.hpp.
◆ GetEntryNormal()
Gets the given indexed entry normal.
Definition at line 48 of file ContactImpulsesList.hpp.
◆ GetEntryTanget()
Gets the given indexed entry tangent.
Definition at line 51 of file ContactImpulsesList.hpp.
◆ AddEntry()
|
inlinenoexcept |
Adds an entry of the given data.
Definition at line 54 of file ContactImpulsesList.hpp.
Friends And Related Function Documentation
◆ GetMaxNormalImpulse()
|
related |
Gets the maximum normal impulse from the given contact impulses list.
Definition at line 70 of file ContactImpulsesList.hpp.
The documentation for this class was generated from the following file:
- Dynamics/ContactImpulsesList.hpp