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

Volume constraint, keeps the volume of a tetrahedron constant. More...

#include <SoftBodySharedSettings.h>

Public Member Functions

 Volume ()=default
 Constructor. More...
 
 Volume (uint32 inVertex1, uint32 inVertex2, uint32 inVertex3, uint32 inVertex4, float inCompliance=0.0f)
 
uint32 GetMinVertexIndex () const
 Return the lowest vertex index of this constraint. More...
 

Public Attributes

uint32 mVertex [4]
 Indices of the vertices that form the tetrhedron. More...
 
float mSixRestVolume = 1.0f
 6 times the rest volume of the tetrahedron (calculated by CalculateVolumeConstraintVolumes()) More...
 
float mCompliance = 0.0f
 Inverse of the stiffness of the constraint. More...
 

Detailed Description

Volume constraint, keeps the volume of a tetrahedron constant.

Constructor & Destructor Documentation

◆ Volume() [1/2]

SoftBodySharedSettings::Volume::Volume ( )
default

Constructor.

◆ Volume() [2/2]

SoftBodySharedSettings::Volume::Volume ( uint32  inVertex1,
uint32  inVertex2,
uint32  inVertex3,
uint32  inVertex4,
float  inCompliance = 0.0f 
)
inline

Member Function Documentation

◆ GetMinVertexIndex()

uint32 SoftBodySharedSettings::Volume::GetMinVertexIndex ( ) const
inline

Return the lowest vertex index of this constraint.

Member Data Documentation

◆ mCompliance

float SoftBodySharedSettings::Volume::mCompliance = 0.0f

Inverse of the stiffness of the constraint.

◆ mSixRestVolume

float SoftBodySharedSettings::Volume::mSixRestVolume = 1.0f

6 times the rest volume of the tetrahedron (calculated by CalculateVolumeConstraintVolumes())

◆ mVertex

uint32 SoftBodySharedSettings::Volume::mVertex[4]

Indices of the vertices that form the tetrhedron.


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