Cyclone Cyclone: cyclone::ContactGenerator Class Reference

cyclone::ContactGenerator Class Reference

This is the basic polymorphic interface for contact generators applying to rigid bodies. More...

#include <contacts.h>

Inheritance diagram for cyclone::ContactGenerator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual unsigned addContact (Contact *contact, unsigned limit) const =0
 Fills the given contact structure with the generated contact.

Detailed Description

This is the basic polymorphic interface for contact generators applying to rigid bodies.


Member Function Documentation

virtual unsigned cyclone::ContactGenerator::addContact Contact contact,
unsigned  limit
const [pure virtual]
 

Fills the given contact structure with the generated contact.

The contact pointer should point to the first available contact in a contact array, where limit is the maximum number of contacts in the array that can be written to. The method returns the number of contacts that have been written.

Implemented in cyclone::Joint.


The documentation for this class was generated from the following file: