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
| Returns | Name | Description |
|---|---|---|
bool | IsInitialized | |
void | Reset | |
void | Pose | Rest pose at the transform, no dynamics (the editor, Simulate off). |
void | Step | |
const std::vector<Vec3>& | GetPositions | World-space guide points, kPointsPerStrand per guide. |
Function details
IsInitialized
C++
bool IsInitialized() constReset
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() constWorld-space guide points, kPointsPerStrand per guide.
Generated from Hair/HairStrands.h via game.json · Nov 5, 2026Version 1.0.0