Bullet Physics 3D Block Toy
Public Member Functions | Public Attributes | List of all members
CContactDesc Class Reference

Contact descriptor. More...

#include <Descriptors.h>

Public Member Functions

 CContactDesc ()
 Default constructor.
 
 CContactDesc (const UINT, const float=0.0f)
 Constructor. More...
 

Public Attributes

UINT m_nNumContacts = 0
 Number of contact points.
 
float m_fImpulse = 0.0f
 Impulse magnitude.
 

Detailed Description

Describes some of the properties that Bullet Physics will tell us about contacts, that is, the number of contact pointss (which can be between 0 and 4) and a magnitude for the impulse experienced by this contact. Bullet Physics does in fact give us more information than this, but this is what's needed for now to generate collision sounds.

Constructor & Destructor Documentation

◆ CContactDesc()

CContactDesc::CContactDesc ( const UINT  n,
const float  impulse = 0.0f 
)

Constructor.

Parameters
nNumber of contacts.
impulseImpulse magnitude. Defaults to zero.