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

step/stepcore

  • StepCore
  • Contact
Public Types | Public Attributes | List of all members
StepCore::Contact Struct Reference
Collision and constraint solvers

#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:
  • collisionsolver.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

step/stepcore

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal