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
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::string | hairPath | |
std::string | attachBone | The 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. |
Vec3 | rootColor | Default Vec3(0.12f, 0.08f, 0.05f). |
Vec3 | tipColor | Default Vec3(0.30f, 0.20f, 0.12f). |
float | roughness | Longitudinal width of the Marschner lobes: low = a tight, glossy sheen. Default 0.35f. |
float | widthScale | Multiplies the groom's root and tip widths. Default 1.0f. |
int32_t | strandsPerGuide | Render strands interpolated per guide; 0 keeps the groom's own count. Default 0. |
bool | simulate | Default true. |
float | stiffness | Pull toward the rest shape per step (root; a third of it at the tip). Default 0.15f. |
float | damping | Default 0.08f. |
float | gravityScale | Default 1.0f. |
Constructors
| Signature | Name | Description |
|---|---|---|
HairStrandsComponent() = default | HairStrandsComponent |
Function details
HairStrandsComponent
C++
HairStrandsComponent() = defaultGenerated from Game/Components/HairStrandsComponent.h via game.json · Nov 5, 2026Version 1.0.0