PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::ContactImpulsesList Class Reference

Contact Impulse. More...

#include <ContactImpulsesList.hpp>

Collaboration diagram for playrho::d2::ContactImpulsesList:
[legend]

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.
 

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.

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