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

A constraint that connects two Cosserat rods and limits bend and twist between the rods. More...

#include <SoftBodySharedSettings.h>

Public Member Functions

 RodBendTwist ()=default
 Constructor.
 
 RodBendTwist (uint32 inRod1, uint32 inRod2, float inCompliance=0.0f)
 

Public Attributes

uint32 mRod [2]
 Indices of rods that are constrained (index in mRodStretchShearConstraints)
 
float mCompliance = 0.0f
 Inverse of the stiffness of the rod.
 
Quat mOmega0 = Quat::sZero()
 The initial rotation between the rods: rod1.mBishop.Conjugated() * rod2.mBishop, calculated by CalculateRodProperties.
 

Detailed Description

A constraint that connects two Cosserat rods and limits bend and twist between the rods.

Constructor & Destructor Documentation

◆ RodBendTwist() [1/2]

SoftBodySharedSettings::RodBendTwist::RodBendTwist ( )
default

Constructor.

◆ RodBendTwist() [2/2]

SoftBodySharedSettings::RodBendTwist::RodBendTwist ( uint32 inRod1,
uint32 inRod2,
float inCompliance = 0.0f )
inline

Member Data Documentation

◆ mCompliance

float SoftBodySharedSettings::RodBendTwist::mCompliance = 0.0f

Inverse of the stiffness of the rod.

◆ mOmega0

Quat SoftBodySharedSettings::RodBendTwist::mOmega0 = Quat::sZero()

The initial rotation between the rods: rod1.mBishop.Conjugated() * rod2.mBishop, calculated by CalculateRodProperties.

◆ mRod

uint32 SoftBodySharedSettings::RodBendTwist::mRod[2]

Indices of rods that are constrained (index in mRodStretchShearConstraints)


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