Replace ceiling Y offset with per-pose CharacterController capsule

Each PlayerPose now carries its own collider center Y, radius and height,
eased and routed to the CharacterController via a SetCapsule single-writer.
This lets crawl poses (Ball/Star) shrink the capsule to fit under furniture.
The ceiling Y offset is removed; poses without authored sizes fall back to
the base capsule, so existing poses keep their collision.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Opus 4.8 committed 2026-06-27 09:55:10 +02:00
1 parent 13de058819
commit 52f9ace9e0
6 files changed
+144 -59

No files matched your search

+3 -1
View File
@@ -18,5 +18,7 @@ MonoBehaviour:
walkClipSpeed: 1
runClip: {fileID: 0}
runClipSpeed: 1
ceilingYOffset: 0.84
controllerCenterY: 0.25
controllerRadius: 0.15
controllerHeight: 0.5
cameraTargetYOffset: -0.5
+3 -1
View File
@@ -18,5 +18,7 @@ MonoBehaviour:
walkClipSpeed: 1
runClip: {fileID: 0}
runClipSpeed: 1
ceilingYOffset: 1
controllerCenterY: 0.12
controllerRadius: 0.1
controllerHeight: 0.3
cameraTargetYOffset: -0.55