Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SoftBodySharedSettings::VertexAttributes Struct Reference

#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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ VertexAttributes() [1/2]

SoftBodySharedSettings::VertexAttributes::VertexAttributes ( )
default

Constructor.

◆ VertexAttributes() [2/2]

SoftBodySharedSettings::VertexAttributes::VertexAttributes ( float  inCompliance,
float  inShearCompliance,
float  inBendCompliance,
ELRAType  inLRAType = ELRAType::None,
float  inLRAMaxDistanceMultiplier = 1.0f 
)
inline

Member Data Documentation

◆ mBendCompliance

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.

◆ mCompliance

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.

◆ mLRAMaxDistanceMultiplier

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.

◆ mLRAType

ELRAType SoftBodySharedSettings::VertexAttributes::mLRAType = ELRAType::None

The type of long range attachment constraint to create.

◆ mShearCompliance

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.


The documentation for this struct was generated from the following file: