Public Member Functions

bl7::particles2::ContactResolver Class Reference

#include <ContactResolver.h>

List of all members.

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)

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines