class

FHairSimulation

Guide dynamics, per placed groom. Verlet with follow-the-leader length constraints (every segment keeps its rest length exactly, root outward), a shape-matching pull toward the rest pose carried by the root transform, and velocity damping, stepped at a fixed 1/120 s so the look does not depend on the frame rate. The root point of every guide is pinned to the transform.

Module
Game
Header
#include "Hair/HairStrands.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
boolIsInitialized
voidReset
voidPoseRest pose at the transform, no dynamics (the editor, Simulate off).
voidStep
const std::vector<Vec3>&GetPositionsWorld-space guide points, kPointsPerStrand per guide.

Function details

IsInitialized

C++
bool IsInitialized() const

Reset

C++
void Reset(const FHairAsset& asset, const Mat4& rootTransform)

Pose

C++
void Pose(const FHairAsset& asset, const Mat4& rootTransform)

Rest pose at the transform, no dynamics (the editor, Simulate off).

Step

C++
void Step(const FHairAsset& asset, const Mat4& rootTransform, float dt, const FSettings& settings)

GetPositions

C++
const std::vector<Vec3>& GetPositions() const

World-space guide points, kPointsPerStrand per guide.

Generated from Hair/HairStrands.h via game.json · Nov 5, 2026Version 1.0.0