![]() |
Bullet Physics 3D Block Toy
|
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. | |
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.
| CContactDesc::CContactDesc | ( | const UINT | n, |
| const float | impulse = 0.0f |
||
| ) |
Constructor.
| n | Number of contacts. |
| impulse | Impulse magnitude. Defaults to zero. |