step/stepcore
StepCore::Contact Struct Reference
[Collision and constraint solvers]
#include <collisionsolver.h>
Detailed Description
Description of contact between two bodies.Definition at line 40 of file 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] |
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 41 of file collisionsolver.h.
| anonymous enum |
- Enumerator:
-
UnknownType PolygonPolygonType PolygonDiskType PolygonParticleType DiskDiskType DiskParticleType
Definition at line 50 of file collisionsolver.h.
Member Data Documentation
| int StepCore::Contact::_w1[2] |
Definition at line 72 of file collisionsolver.h.
| double StepCore::Contact::distance |
Time derivative of contact normal (only if state == Contacted).
Definition at line 64 of file collisionsolver.h.
Contact state (maximum of pointsState if pointsCount > 0).
Definition at line 61 of file collisionsolver.h.
| double StepCore::Contact::vrel[2] |
The documentation for this struct was generated from the following file:
KDE 4.2 API Reference