Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
Public Types | Public Member Functions | List of all members
box2d::ContactImpulsesList Class Reference

Contact Impulse. More...

#include <WorldCallbacks.hpp>

Public Types

using count_t = std::remove_const< decltype(MaxManifoldPoints)>::type
 

Public Member Functions

count_t GetCount () const noexcept
 
Momentum GetEntryNormal (count_t index) const noexcept
 
Momentum GetEntryTanget (count_t index) const noexcept
 
void AddEntry (Momentum normal, Momentum tangent) noexcept
 

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.

Member Typedef Documentation

◆ count_t

using box2d::ContactImpulsesList::count_t = std::remove_const<decltype(MaxManifoldPoints)>::type

Member Function Documentation

◆ AddEntry()

void box2d::ContactImpulsesList::AddEntry ( Momentum  normal,
Momentum  tangent 
)
inlinenoexcept

◆ GetCount()

count_t box2d::ContactImpulsesList::GetCount ( ) const
inlinenoexcept

◆ GetEntryNormal()

Momentum box2d::ContactImpulsesList::GetEntryNormal ( count_t  index) const
inlinenoexcept

◆ GetEntryTanget()

Momentum box2d::ContactImpulsesList::GetEntryTanget ( count_t  index) const
inlinenoexcept

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