Jolt Physics
A multi core friendly Game Physics Engine
|
#include <SoftBodySharedSettings.h>
Public Member Functions | |
VertexAttributes ()=default | |
Constructor. More... | |
VertexAttributes (float inCompliance, float inShearCompliance, float inBendCompliance, ELRAType inLRAType=ELRAType::None, float inLRAMaxDistanceMultiplier=1.0f) | |
Public Attributes | |
float | mCompliance = 0.0f |
The compliance of the normal edges. Set to FLT_MAX to disable regular edges for any edge involving this vertex. More... | |
float | mShearCompliance = 0.0f |
The compliance of the shear edges. Set to FLT_MAX to disable shear edges for any edge involving this vertex. More... | |
float | mBendCompliance = FLT_MAX |
The compliance of the bend edges. Set to FLT_MAX to disable bend edges for any bend constraint involving this vertex. More... | |
ELRAType | mLRAType = ELRAType::None |
The type of long range attachment constraint to create. More... | |
float | mLRAMaxDistanceMultiplier = 1.0f |
Multiplier for the max distance of the LRA constraint, e.g. 1.01 means the max distance is 1% longer than the calculated distance in the rest pose. More... | |
Per vertex attributes used during the CreateConstraints function. For an edge or shear constraint, the compliance is averaged between the two attached vertices. For a bend constraint, the compliance is averaged between the two vertices on the shared edge.
|
default |
Constructor.
|
inline |
float SoftBodySharedSettings::VertexAttributes::mBendCompliance = FLT_MAX |
The compliance of the bend edges. Set to FLT_MAX to disable bend edges for any bend constraint involving this vertex.
float SoftBodySharedSettings::VertexAttributes::mCompliance = 0.0f |
The compliance of the normal edges. Set to FLT_MAX to disable regular edges for any edge involving this vertex.
float SoftBodySharedSettings::VertexAttributes::mLRAMaxDistanceMultiplier = 1.0f |
Multiplier for the max distance of the LRA constraint, e.g. 1.01 means the max distance is 1% longer than the calculated distance in the rest pose.
ELRAType SoftBodySharedSettings::VertexAttributes::mLRAType = ELRAType::None |
The type of long range attachment constraint to create.
float SoftBodySharedSettings::VertexAttributes::mShearCompliance = 0.0f |
The compliance of the shear edges. Set to FLT_MAX to disable shear edges for any edge involving this vertex.