step/stepcore
#include <collisionsolver.h>
Public Types | |
enum | { Unknown = 0, Separated, Separating, Contacted, Colliding, Intersected } |
enum | { UnknownType, PolygonPolygonType, PolygonDiskType, PolygonParticleType, DiskDiskType, DiskParticleType } |
Public Attributes | |
int | _w1 [2] |
Body * | body0 |
Body * | body1 |
double | distance |
Vector2d | normal |
Vector2d | normalDerivative |
Vector2d | points [2] |
int | pointsCount |
int | pointsState [2] |
int | state |
int | type |
double | vrel [2] |
Detailed Description
Description of contact between two bodies.
Definition at line 43 of file collisionsolver.h.
Member Enumeration Documentation
anonymous enum |
Enumerator | |
---|---|
Unknown |
Contact state was not (can not) be determined (if state == Unknown all other fields are not used) |
Separated |
Bodies are far away. |
Separating |
Bodies are contacted but moving apart. |
Contacted |
Bodies are contacted but resting. |
Colliding |
Bodies are collising. |
Intersected |
Bodies are interpenetrating. |
Definition at line 46 of file collisionsolver.h.
anonymous enum |
Enumerator | |
---|---|
UnknownType | |
PolygonPolygonType | |
PolygonDiskType | |
PolygonParticleType | |
DiskDiskType | |
DiskParticleType |
Definition at line 55 of file collisionsolver.h.
Member Data Documentation
int StepCore::Contact::_w1[2] |
Definition at line 77 of file collisionsolver.h.
Body* StepCore::Contact::body0 |
Body0.
Definition at line 64 of file collisionsolver.h.
Body* StepCore::Contact::body1 |
Body1.
Definition at line 65 of file collisionsolver.h.
double StepCore::Contact::distance |
Distance between bodies.
Definition at line 67 of file collisionsolver.h.
Vector2d StepCore::Contact::normal |
Contact normal (pointing from body0 to body1)
Definition at line 68 of file collisionsolver.h.
Vector2d StepCore::Contact::normalDerivative |
Time derivative of contact normal (only if state == Contacted)
Definition at line 69 of file collisionsolver.h.
Vector2d StepCore::Contact::points[2] |
Contact point coordinated.
Definition at line 72 of file collisionsolver.h.
int StepCore::Contact::pointsCount |
Count of contact points (either one or two)
Definition at line 70 of file collisionsolver.h.
int StepCore::Contact::pointsState[2] |
Contact point states.
Definition at line 71 of file collisionsolver.h.
int StepCore::Contact::state |
Contact state (maximum of pointsState if pointsCount > 0)
Definition at line 66 of file collisionsolver.h.
int StepCore::Contact::type |
Contact type (used internally)
Definition at line 63 of file collisionsolver.h.
double StepCore::Contact::vrel[2] |
Relative velocities at contact points.
Definition at line 73 of file collisionsolver.h.
The documentation for this struct was generated from the following file:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.