• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

step/stepcore

StepCore::Contact

StepCore::Contact Struct Reference
[Collision and constraint solvers]

#include <collisionsolver.h>

List of all members.


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.

Body* StepCore::Contact::body0

Body0.

Definition at line 59 of file collisionsolver.h.

Body* StepCore::Contact::body1

Body1.

Definition at line 60 of file collisionsolver.h.

double StepCore::Contact::distance

Distance between bodies.

Definition at line 62 of file collisionsolver.h.

Vector2d StepCore::Contact::normal

Contact normal (pointing from body0 to body1).

Definition at line 63 of file collisionsolver.h.

Vector2d StepCore::Contact::normalDerivative

Time derivative of contact normal (only if state == Contacted).

Definition at line 64 of file collisionsolver.h.

Vector2d StepCore::Contact::points[2]

Contact point coordinated.

Definition at line 67 of file collisionsolver.h.

int StepCore::Contact::pointsCount

Count of contact points (either one or two).

Definition at line 65 of file collisionsolver.h.

int StepCore::Contact::pointsState[2]

Contact point states.

Definition at line 66 of file collisionsolver.h.

int StepCore::Contact::state

Contact state (maximum of pointsState if pointsCount > 0).

Definition at line 61 of file collisionsolver.h.

int StepCore::Contact::type

Contact type (used internally).

Definition at line 58 of file collisionsolver.h.

double StepCore::Contact::vrel[2]

Relative velocities at contact points.

Definition at line 68 of file collisionsolver.h.


The documentation for this struct was generated from the following file:
  • collisionsolver.h

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal