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

#include <SoftBodySharedSettings.h>

Public Member Functions

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

Public Attributes

uint32 mVertex [4]
 Indices of the vertices of the 2 triangles that share an edge (the first 2 vertices are the shared edge)
 
float mCompliance = 0.0f
 Inverse of the stiffness of the constraint.
 
float mInitialAngle = 0.0f
 Initial angle between the normals of the triangles (pi - dihedral angle).
 

Detailed Description

A dihedral bend constraint keeps the angle between two triangles constant along their shared edge.

   x2
  /  \
 / t0 \
x0----x1
 \ t1 /
  \  /
   x3

x0..x3 are the vertices, t0 and t1 are the triangles that share the edge x0..x1

Based on:

  • "Position Based Dynamics" - Matthias Muller et al.
  • "Strain Based Dynamics" - Matthias Muller et al.
  • "Simulation of Clothing with Folds and Wrinkles" - R. Bridson et al.

Constructor & Destructor Documentation

◆ DihedralBend() [1/2]

SoftBodySharedSettings::DihedralBend::DihedralBend ( )
default

Constructor.

◆ DihedralBend() [2/2]

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

Member Function Documentation

◆ GetMinVertexIndex()

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

Return the lowest vertex index of this constraint.

Member Data Documentation

◆ mCompliance

float SoftBodySharedSettings::DihedralBend::mCompliance = 0.0f

Inverse of the stiffness of the constraint.

◆ mInitialAngle

float SoftBodySharedSettings::DihedralBend::mInitialAngle = 0.0f

Initial angle between the normals of the triangles (pi - dihedral angle).

◆ mVertex

uint32 SoftBodySharedSettings::DihedralBend::mVertex[4]

Indices of the vertices of the 2 triangles that share an edge (the first 2 vertices are the shared edge)


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