![]() |
Jolt Physics
A multi core friendly Game Physics Engine
|
An edge keeps two vertices at a constant distance using a spring: |x1 - x2| = rest length. More...
#include <SoftBodySharedSettings.h>
Public Member Functions | |
| Edge ()=default | |
| Constructor. | |
| Edge (uint32 inVertex1, uint32 inVertex2, float inCompliance=0.0f) | |
| uint32 | GetMinVertexIndex () const |
| Return the lowest vertex index of this constraint. | |
Public Attributes | |
| uint32 | mVertex [2] |
| Indices of the vertices that form the edge. | |
| float | mRestLength = 1.0f |
| Rest length of the spring. | |
| float | mCompliance = 0.0f |
| Inverse of the stiffness of the spring. | |
An edge keeps two vertices at a constant distance using a spring: |x1 - x2| = rest length.
|
default |
Constructor.
|
inline |
|
inline |
Return the lowest vertex index of this constraint.
| float SoftBodySharedSettings::Edge::mCompliance = 0.0f |
Inverse of the stiffness of the spring.
| float SoftBodySharedSettings::Edge::mRestLength = 1.0f |
Rest length of the spring.
| uint32 SoftBodySharedSettings::Edge::mVertex[2] |
Indices of the vertices that form the edge.