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:
1 parent
13de058819
commit
52f9ace9e0
6 files changed
+144
-59
No files matched your search
@@ -4633,7 +4633,7 @@ MonoBehaviour:
|
||||
wallOffsetReturnSpeed: 2
|
||||
wallOffsetFollow: 12
|
||||
wallExitGrace: 0.15
|
||||
ceilingGrabDistance: 0.3
|
||||
ceilingGrabDistance: 0.02
|
||||
wallTopOutBoost: 0.3
|
||||
cameraOrbit: {fileID: 0}
|
||||
meshOffsetTarget: {fileID: 0}
|
||||
@@ -4660,7 +4660,8 @@ MonoBehaviour:
|
||||
defaultPoseIndex: 0
|
||||
cycleKey: 17
|
||||
poseBlendDuration: 0.2
|
||||
ceilingOffsetSpeed: 4
|
||||
cameraOffsetSpeed: 4
|
||||
capsuleBlendSpeed: 8
|
||||
applyFootIK: 0
|
||||
--- !u!114 &1141039644
|
||||
MonoBehaviour:
|
||||
|
||||
Reference in new issue
Block a user