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

A simulated vertex in a hair strand. More...

#include <HairSettings.h>

Public Member Functions

 SVertex ()=default
 Constructor.
 
 SVertex (const Float3 &inPosition, float inInvMass=1.0f)
 

Public Attributes

Float3 mPosition { 0, 0, 0 }
 Initial position of the vertex in its modeled pose.
 
float mInvMass = 1.0f
 Inverse of the mass of the vertex.
 
float mLength = 0.0f
 Initial distance of this vertex to the next of the unloaded strand, computed by Init.
 
float mStrandFraction = 0.0f
 Fraction along the strand, 0 = start, 1 = end, computed by Init.
 
Float4 mBishop { 0, 0, 0, 1.0f }
 Bishop frame of the strand in its modeled pose, computed by Init.
 
Float4 mOmega0 { 0, 0, 0, 1.0f }
 Conjugate(Previous Bishop) * Bishop, defines the rotation difference between the previous rod and this one of the unloaded strand, computed by Init.
 

Detailed Description

A simulated vertex in a hair strand.

Constructor & Destructor Documentation

◆ SVertex() [1/2]

HairSettings::SVertex::SVertex ( )
default

Constructor.

◆ SVertex() [2/2]

HairSettings::SVertex::SVertex ( const Float3 & inPosition,
float inInvMass = 1.0f )
inlineexplicit

Member Data Documentation

◆ mBishop

Float4 HairSettings::SVertex::mBishop { 0, 0, 0, 1.0f }

Bishop frame of the strand in its modeled pose, computed by Init.

◆ mInvMass

float HairSettings::SVertex::mInvMass = 1.0f

Inverse of the mass of the vertex.

◆ mLength

float HairSettings::SVertex::mLength = 0.0f

Initial distance of this vertex to the next of the unloaded strand, computed by Init.

◆ mOmega0

Float4 HairSettings::SVertex::mOmega0 { 0, 0, 0, 1.0f }

Conjugate(Previous Bishop) * Bishop, defines the rotation difference between the previous rod and this one of the unloaded strand, computed by Init.

◆ mPosition

Float3 HairSettings::SVertex::mPosition { 0, 0, 0 }

Initial position of the vertex in its modeled pose.

◆ mStrandFraction

float HairSettings::SVertex::mStrandFraction = 0.0f

Fraction along the strand, 0 = start, 1 = end, computed by Init.


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