struct

HairStrandsComponent

A strand groom (.mhair guide curves) on a character. Put it on the entity with the skeletal mesh: the guides ride the named bone of that mesh's posed skeleton (or the entity itself when the bone is empty or missing), simulate at runtime, and are interpolated into camera-facing ribbons drawn into the G-buffer with Marschner-lite shading. Reflected, so the Details panel edits every field with zero editor code.

Module
Game
Header
#include "Game/Components/HairStrandsComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
boolenabledDefault true.
std::stringhairPath
std::stringattachBoneThe skeleton bone the groom is authored relative to (a head, say); the guide points are in that bone's space. Empty = the entity's space.
Vec3rootColorDefault Vec3(0.12f, 0.08f, 0.05f).
Vec3tipColorDefault Vec3(0.30f, 0.20f, 0.12f).
floatroughnessLongitudinal width of the Marschner lobes: low = a tight, glossy sheen. Default 0.35f.
floatwidthScaleMultiplies the groom's root and tip widths. Default 1.0f.
int32_tstrandsPerGuideRender strands interpolated per guide; 0 keeps the groom's own count. Default 0.
boolsimulateDefault true.
floatstiffnessPull toward the rest shape per step (root; a third of it at the tip). Default 0.15f.
floatdampingDefault 0.08f.
floatgravityScaleDefault 1.0f.

Constructors

SignatureNameDescription
HairStrandsComponent() = defaultHairStrandsComponent

Function details

HairStrandsComponent

C++
HairStrandsComponent() = default
Generated from Game/Components/HairStrandsComponent.h via game.json · Nov 5, 2026Version 1.0.0