Klamp't  0.8.1
Public Attributes | List of all members
ContactFeedbackInfo Struct Reference

Container for information about contacts regarding a certain object. Can be set to accumulate a summary over sub-steps or detailed data per-step. More...

#include <WorldSimulation.h>

Public Attributes

bool accum
 set this to true if you want to accumulate summary feedback over sub-steps
 
int contactCount
 
int separationCount
 number of sub-steps in which contact was made / object was separated during the outer simulation interval.
 
bool inContact
 true if contact exists at the end of the outer simulation interval
 
Vector3 meanForce
 
Vector3 meanTorque
 
Vector3 meanPoint
 
bool penetrating
 true if the objects are currently penetrating
 
int penetrationCount
 the number of sub-steps in which the objects were penetrating during the outer simulation interval
 
bool accumFull
 
vector< double > times
 
vector< ODEContactListcontactLists
 

Detailed Description

Container for information about contacts regarding a certain object. Can be set to accumulate a summary over sub-steps or detailed data per-step.

The reason why this is needed is that each outer WorldSimulation.Advance call may potential make several inner sub steps. Rather than simply reporting the data at the last point, this class will aggregate the sub-step data.


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