Contact.cpp File Reference

Go to the source code of this file.

Namespaces

 playrho
 
 playrho::d2
 

Macros

#define OVERLAP_TOLERANCE   (SquareMeter / Real(20))
 

Functions

Body * playrho::d2::GetBodyA (const Contact &contact) noexcept
 Gets the body A associated with the given contact. More...
 
Body * playrho::d2::GetBodyB (const Contact &contact) noexcept
 Gets the body B associated with the given contact. More...
 
bool playrho::d2::HasSensor (const Contact &contact) noexcept
 Whether the given contact has a sensor. More...
 
bool playrho::d2::IsImpenetrable (const Contact &contact) noexcept
 Whether the given contact is "impenetrable". More...
 
bool playrho::d2::IsActive (const Contact &contact) noexcept
 Determines whether the given contact is "active". More...
 
void playrho::d2::SetAwake (const Contact &c) noexcept
 Sets awake the fixtures of the given contact. More...
 
void playrho::d2::ResetFriction (Contact &contact)
 Resets the friction mixture to the default value. More...
 
void playrho::d2::ResetRestitution (Contact &contact) noexcept
 Reset the restitution to the default value. More...
 
TOIOutput playrho::d2::CalcToi (const Contact &contact, ToiConf conf)
 Calculates the Time Of Impact for the given contact with the given configuration. More...
 

Macro Definition Documentation

◆ OVERLAP_TOLERANCE

#define OVERLAP_TOLERANCE   (SquareMeter / Real(20))