#include <ContactResolver.h>
Public Member Functions | |
| ContactResolver (void) | |
| ~ContactResolver (void) | |
| ContactResolver (Contact *contacts_array, unsigned num_o_contacts) | |
| void | set_array (Contact *contacts_array, unsigned num_o_contacts) |
| void | resolve_contacts (const float time, unsigned max_iterations=0) |
| bl7::particles2::ContactResolver::ContactResolver | ( | void | ) | [inline] |
Default constructor. You have to set the array with generated contacts manually, otherwise you will reap crucial errors.
| bl7::particles2::ContactResolver::~ContactResolver | ( | void | ) | [inline] |
Destructor.
| bl7::particles2::ContactResolver::ContactResolver | ( | Contact * | contacts_array, | |
| unsigned | num_o_contacts | |||
| ) | [inline] |
Explicit constructor. Takes a pointer to an array with generated contacts.
| void bl7::particles2::ContactResolver::resolve_contacts | ( | const float | time, | |
| unsigned | max_iterations = 0 | |||
| ) |
Resolves the particle contacts in the array for both velocity and interpenetration. A value of 0 for the maximum number of iterations means the default value of twice the number of contacts in the array.
| void bl7::particles2::ContactResolver::set_array | ( | Contact * | contacts_array, | |
| unsigned | num_o_contacts | |||
| ) | [inline] |
Sets the array and the number of particle contacts.
1.7.1