Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Data stored per strand base instance
| Name | FNDIHairStrandsData |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/Niagara/NiagaraDataInterfaceHairStrands.h |
| Include Path | #include "Niagara/NiagaraDataInterfaceHairStrands.h" |
Syntax
struct FNDIHairStrandsData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNDIHairStrandsData() |
Niagara/NiagaraDataInterfaceHairStrands.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AirDrag | float | Coefficient between 0 and 1 to be used for the air drag | Niagara/NiagaraDataInterfaceHairStrands.h | |
| AirVelocity | FVector | Velocity of the surrounding air in cm/s | Niagara/NiagaraDataInterfaceHairStrands.h | |
| BendDamping | float | Damping for the bend constraint between 0 and 1 | Niagara/NiagaraDataInterfaceHairStrands.h | |
| BendStiffness | float | Stiffness for the bend constraint in GPa | Niagara/NiagaraDataInterfaceHairStrands.h | |
| BindingType | EHairBindingType | Binding type between the groom asset and the attached skeletal mesh | Niagara/NiagaraDataInterfaceHairStrands.h | |
| BoneAngularAcceleration | FVector3f | Bone Angular Acceleration | Niagara/NiagaraDataInterfaceHairStrands.h | |
| BoneAngularVelocity | FVector3f | Bone Angular Velocity | Niagara/NiagaraDataInterfaceHairStrands.h | |
| BoneLinearAcceleration | FVector3f | Bone Linear Acceleration | Niagara/NiagaraDataInterfaceHairStrands.h | |
| BoneLinearVelocity | FVector3f | Bone Linear Velocity | Niagara/NiagaraDataInterfaceHairStrands.h | |
| BoneTransform | FTransform | Bone transform that will be used for local strands simulation | Niagara/NiagaraDataInterfaceHairStrands.h | |
| bSkinningTransfer | bool | Skinning transfer from a source to a target skelmesh | Niagara/NiagaraDataInterfaceHairStrands.h | |
| CollisionRadius | float | Radius scale along the strand | Niagara/NiagaraDataInterfaceHairStrands.h | |
| ForceReset | bool | Force reset simulation | Niagara/NiagaraDataInterfaceHairStrands.h | |
| GlobalInterpolation | bool | Global Interpolation | Niagara/NiagaraDataInterfaceHairStrands.h | |
| GravityPreloading | float | Optimisation of the rest state configuration to compensate from the gravity | Niagara/NiagaraDataInterfaceHairStrands.h | |
| GravityVector | FVector | Acceleration vector in cm/s2 to be used for the gravity | Niagara/NiagaraDataInterfaceHairStrands.h | |
| GridDimension | FIntVector | Grid Dimension used to compute the viscosity forces | Niagara/NiagaraDataInterfaceHairStrands.h | |
| HairGroupIndex | int32 | Hair group index | Niagara/NiagaraDataInterfaceHairStrands.h | |
| HairGroupInstance | FHairGroupInstance * | Hair group instance | Niagara/NiagaraDataInterfaceHairStrands.h | |
| HairGroupInstSource | TWeakObjectPtr< class UGroomComponent > | Source component of the hair group instance | Niagara/NiagaraDataInterfaceHairStrands.h | |
| HairStrandsBuffer | FNDIHairStrandsBuffer * | Strands Gpu buffer | Niagara/NiagaraDataInterfaceHairStrands.h | |
| IterationCount | int32 | Number of iterations for the constraint solver | Niagara/NiagaraDataInterfaceHairStrands.h | |
| KineticFriction | float | Kinetic friction used for collision against the physics asset | Niagara/NiagaraDataInterfaceHairStrands.h | |
| LocalSimulation | bool | Check if the simulation is running in local coordinate | Niagara/NiagaraDataInterfaceHairStrands.h | |
| NumStrands | int32 | Number of strands | Niagara/NiagaraDataInterfaceHairStrands.h | |
| ParamsScale | TStaticArray< float, 32 *NumScales > | Scales along the strand | Niagara/NiagaraDataInterfaceHairStrands.h | |
| PreviousBoneAngularVelocity | FVector3f | Bone Previous Angular Velocity | Niagara/NiagaraDataInterfaceHairStrands.h | |
| PreviousBoneLinearVelocity | FVector3f | Bone Previous Linear Velocity | Niagara/NiagaraDataInterfaceHairStrands.h | |
| PreviousBoneTransform | FTransform | Bone transform that will be used for local strands simulation | Niagara/NiagaraDataInterfaceHairStrands.h | |
| ProjectBend | bool | Enable the solve of the bend constraint during the xpbd loop | Niagara/NiagaraDataInterfaceHairStrands.h | |
| ProjectCollision | bool | Enable ther projection of the collision constraint after the xpbd loop | Niagara/NiagaraDataInterfaceHairStrands.h | |
| ProjectStretch | bool | Enable the projection of the stretch constraint after the xpbd loop | Niagara/NiagaraDataInterfaceHairStrands.h | |
| SkeletalMeshes | uint32 | List of all the skel meshes in the hierarchy | Niagara/NiagaraDataInterfaceHairStrands.h | |
| SolveBend | bool | Velocity of the surrounding air in cm/s | Niagara/NiagaraDataInterfaceHairStrands.h | |
| SolveCollision | bool | Enable the solve of the collision constraint during the xpbd loop | Niagara/NiagaraDataInterfaceHairStrands.h | |
| SolveStretch | bool | Enable the solve of the stretch constraint during the xpbd loop | Niagara/NiagaraDataInterfaceHairStrands.h | |
| StaticFriction | float | Static friction used for collision against the physics asset | Niagara/NiagaraDataInterfaceHairStrands.h | |
| StrandsDensity | float | Density of the strands in g/cm3 | Niagara/NiagaraDataInterfaceHairStrands.h | |
| StrandsSize | int32 | Strand size | Niagara/NiagaraDataInterfaceHairStrands.h | |
| StrandsSmoothing | float | Smoothing between 0 and 1 of the incoming guides curves for better stability | Niagara/NiagaraDataInterfaceHairStrands.h | |
| StrandsThickness | float | Strands thickness in cm that will be used for mass and inertia computation | Niagara/NiagaraDataInterfaceHairStrands.h | |
| StrandsViscosity | float | Radius that will be used for the collision detection against the physics asset | Niagara/NiagaraDataInterfaceHairStrands.h | |
| StretchDamping | float | Damping for the stretch constraint between 0 and 1 | Niagara/NiagaraDataInterfaceHairStrands.h | |
| StretchStiffness | float | Stiffness for the stretch constraint in GPa | Niagara/NiagaraDataInterfaceHairStrands.h | |
| SubSteps | int32 | Number of substeps to be used | Niagara/NiagaraDataInterfaceHairStrands.h | |
| TickingGroup | ETickingGroup | The instance ticking group | Niagara/NiagaraDataInterfaceHairStrands.h | |
| WorldTransform | FTransform | Cached World transform. | Niagara/NiagaraDataInterfaceHairStrands.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CopyDatas
(
const FNDIHairStrandsData* OtherDatas |
Niagara/NiagaraDataInterfaceHairStrands.h | ||
bool Init
(
UNiagaraDataInterfaceHairStrands* Interface, |
Initialize the buffers | Niagara/NiagaraDataInterfaceHairStrands.h | |
void Release() |
Release the buffers | Niagara/NiagaraDataInterfaceHairStrands.h | |
void ResetDatas() |
Niagara/NiagaraDataInterfaceHairStrands.h | ||
void Update
(
UNiagaraDataInterfaceHairStrands* Interface, |
Update the buffers | Niagara/NiagaraDataInterfaceHairStrands.h |