An edge keeps two vertices at a constant distance using a spring: |x1 - x2| = rest length.
More...
#include <SoftBodySharedSettings.h>
|
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.
◆ Edge() [1/2]
SoftBodySharedSettings::Edge::Edge |
( |
| ) |
|
|
default |
◆ Edge() [2/2]
SoftBodySharedSettings::Edge::Edge |
( |
uint32 |
inVertex1, |
|
|
uint32 |
inVertex2, |
|
|
float |
inCompliance = 0.0f |
|
) |
| |
|
inline |
◆ GetMinVertexIndex()
uint32 SoftBodySharedSettings::Edge::GetMinVertexIndex |
( |
| ) |
const |
|
inline |
Return the lowest vertex index of this constraint.
◆ mCompliance
float SoftBodySharedSettings::Edge::mCompliance = 0.0f |
Inverse of the stiffness of the spring.
◆ mRestLength
float SoftBodySharedSettings::Edge::mRestLength = 1.0f |
Rest length of the spring.
◆ mVertex
uint32 SoftBodySharedSettings::Edge::mVertex[2] |
Indices of the vertices that form the edge.
The documentation for this struct was generated from the following file: