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

#include <SoftBodySharedSettings.h>

Public Member Functions

 LRA ()=default
 Constructor.
 
 LRA (uint32 inVertex1, uint32 inVertex2, float inMaxDistance)
 
uint32 GetMinVertexIndex () const
 Return the lowest vertex index of this constraint.
 

Public Attributes

uint32 mVertex [2]
 The vertices that are connected. The first vertex should be kinematic, the 2nd dynamic.
 
float mMaxDistance = 0.0f
 The maximum distance between the vertices.
 

Detailed Description

A long range attachment constraint, this is a constraint that sets a max distance between a kinematic vertex and a dynamic vertex See: "Long Range Attachments - A Method to Simulate Inextensible Clothing in Computer Games", Tae-Yong Kim, Nuttapong Chentanez and Matthias Mueller-Fischer

Constructor & Destructor Documentation

◆ LRA() [1/2]

SoftBodySharedSettings::LRA::LRA ( )
default

Constructor.

◆ LRA() [2/2]

SoftBodySharedSettings::LRA::LRA ( uint32  inVertex1,
uint32  inVertex2,
float  inMaxDistance 
)
inline

Member Function Documentation

◆ GetMinVertexIndex()

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

Return the lowest vertex index of this constraint.

Member Data Documentation

◆ mMaxDistance

float SoftBodySharedSettings::LRA::mMaxDistance = 0.0f

The maximum distance between the vertices.

◆ mVertex

uint32 SoftBodySharedSettings::LRA::mVertex[2]

The vertices that are connected. The first vertex should be kinematic, the 2nd dynamic.


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