PlayRho  2.0.0
An interactive physics engine & library.
playrho::d2::ContactImpulsesList Class Reference

#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.
 

Detailed Description

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.


The documentation for this class was generated from the following file: