Cyclone Cyclone: cyclone::GroundContacts Class Reference

cyclone::GroundContacts Class Reference

A contact generator that takes an STL vector of particle pointers and collides them against the ground. More...

#include <pworld.h>

Inheritance diagram for cyclone::GroundContacts:

Inheritance graph
[legend]
Collaboration diagram for cyclone::GroundContacts:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void init (cyclone::ParticleWorld::Particles *particles)
virtual unsigned addContact (cyclone::ParticleContact *contact, unsigned limit) const
 Fills the given contact structure with the generated contact.

Detailed Description

A contact generator that takes an STL vector of particle pointers and collides them against the ground.


Member Function Documentation

virtual unsigned cyclone::GroundContacts::addContact cyclone::ParticleContact contact,
unsigned  limit
const [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.

Implements cyclone::ParticleContactGenerator.

void cyclone::GroundContacts::init cyclone::ParticleWorld::Particles particles  ) 
 


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