Flatland
Public Member Functions | Public Attributes | List of all members
flatland_plugins::Bumper::ContactState Struct Reference
Collaboration diagram for flatland_plugins::Bumper::ContactState:
Collaboration graph
[legend]

Public Member Functions

 ContactState ()
 the entity the other body belongs to More...
 
void Reset ()
 Reset counter and sums.
 

Public Attributes

int num_count
 stores number of times post solve is called
 
double sum_normal_impulses [2]
 sum of impulses for averaging later
 
double sum_tangential_impulses [2]
 sum of impulses for averaging later
 
b2Vec2 points [2]
 Box2D collision points, max of 2 from Box2D.
 
b2Vec2 normal
 normal of collision points, all points have same normal
 
int normal_sign
 for flipping direction of normal when necessary
 
Bodybody_A
 the body of the model involved in the collision
 
Bodybody_B
 the other body involved in the collision
 
Entityentity_B
 

Constructor & Destructor Documentation

flatland_plugins::Bumper::ContactState::ContactState ( )

the entity the other body belongs to

initializes counters and sums


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