Hair settle: keep strands stored inside a collider where they are stored #526

Manually merged
github merged 1 commit from github-bot/gh-526 into gh-pr/526/base 2026-11-28 03:38:09 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-28 03:21 UTC · original
holdmysocks:claude/people-hair-rest-collide → master · +47 −7 · 1 files · 1 commits · merged 2026-11-28 03:32 UTC

Lucia had grey strand patches floating about 1.5 cm off the side of her face, beside her right eye and brow.

Cause

The patches are groom 112fa2010: 99 short "face" strands (sideburns and flyaways) of her ponytail hair asset. It is the only one of her grooms that stores simulation data, so the viewer settles it against the body bound's colliders.

The female body bound's head capsule (radius 9.5 / 7.8 cm) is wider than the face at the temples. These strands are stored up to 21 mm inside it, and settle pushed every point onto the capsule's surface. That lifted them off the skin.

A survey of all simulated LOD 0 head grooms against that capsule:

  • Scalp grooms (843) rest on it. The median deepest stored point is 0.9 mm inside.
  • Face grooms (1,343) rest well inside it. The median is 19 mm.

Mandy's long hair is affected too: 28% of its stored points lie inside the torso capsules, up to 62 mm deep. So the push lifted strands off her chest as well.

Fix

settle pushes a point out of the colliders only as far as its stored point lies inside them. The stored guides are the look the hair is made for.

  • Hair that rests on a collider keeps its collision as before.
  • Hair still cannot sink deeper into the body than it is stored.

New Colliders::dist and Colliders::push_out_to; push_out is unchanged.

Not traced

  • This is a viewer rule, not decoded game behaviour.
  • The game's shape filter (42dk) and the per-shape collider mask (shape +0x1c, ANDed with groom header +0x74) are not decoded for body-bound children. So which body pieces reach a groom's collider set in the game is not known.
  • The groom masks do not separate scalp grooms from face grooms (both are mostly 005f8100 / 007f8100), so the mask alone does not explain it.

Checks

  • Lucia close-up: the two floating patches are gone, and nothing else changed.
  • Mandy, back and side, before and after: about 2% of pixels changed. The front strands now lie closer to the neck and chest. Nothing passes through the body.
  • New tests:
    • a_guide_stored_inside_a_collider_stays_where_it_is_stored.
    • The floor case of push_out_to.
  • cargo test --release -p sixng-core --lib passes (406).
**@⁠holdmysocks** on GitHub · 2026-11-28 03:21 UTC · [original](https://github.com/holdmysocks/SixNG/pull/526) `holdmysocks:claude/people-hair-rest-collide` → `master` · +47 −7 · 1 files · 1 commits · merged 2026-11-28 03:32 UTC Lucia had grey strand patches floating about 1.5 cm off the side of her face, beside her right eye and brow. ## Cause The patches are groom 112fa2010: 99 short "face" strands (sideburns and flyaways) of her ponytail hair asset. It is the only one of her grooms that stores simulation data, so the viewer settles it against the body bound's colliders. The female body bound's head capsule (radius 9.5 / 7.8 cm) is wider than the face at the temples. These strands are stored up to 21 mm inside it, and `settle` pushed every point onto the capsule's surface. That lifted them off the skin. A survey of all simulated LOD 0 head grooms against that capsule: - Scalp grooms (843) rest on it. The median deepest stored point is 0.9 mm inside. - Face grooms (1,343) rest well inside it. The median is 19 mm. Mandy's long hair is affected too: 28% of its stored points lie inside the torso capsules, up to 62 mm deep. So the push lifted strands off her chest as well. ## Fix `settle` pushes a point out of the colliders only as far as its stored point lies inside them. The stored guides are the look the hair is made for. - Hair that rests on a collider keeps its collision as before. - Hair still cannot sink deeper into the body than it is stored. New `Colliders::dist` and `Colliders::push_out_to`; `push_out` is unchanged. ## Not traced - This is a viewer rule, not decoded game behaviour. - The game's shape filter (42dk) and the per-shape collider mask (shape +0x1c, ANDed with groom header +0x74) are not decoded for body-bound children. So which body pieces reach a groom's collider set in the game is not known. - The groom masks do not separate scalp grooms from face grooms (both are mostly 005f8100 / 007f8100), so the mask alone does not explain it. ## Checks - Lucia close-up: the two floating patches are gone, and nothing else changed. - Mandy, back and side, before and after: about 2% of pixels changed. The front strands now lie closer to the neck and chest. Nothing passes through the body. - New tests: - `a_guide_stored_inside_a_collider_stays_where_it_is_stored`. - The floor case of `push_out_to`. - `cargo test --release -p sixng-core --lib` passes (406).
Face grooms (sideburns, flyaways) are stored inside the body bound's head capsule; pushing them onto it lifted Lucia's sideburn strands 1.5 cm off her face. A point now stays as deep inside a collider as its stored point.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 03:26:02 +00:00
github-bot changed target branch from master to gh-pr/526/base 2026-11-28 03:38:06 +00:00
github manually merged commit 81adb882cc into gh-pr/526/base 2026-11-28 03:38:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.