Add pose-switching system with continuous hold and sprint reset
New PlayerPose ScriptableObject (AnimationClip + ceiling Y-offset) and PlayerPoseController that drives poses via a PlayableGraph, overriding the Animator controller. Poses are held continuously (idle, moving, on wall/ ceiling) so cycle and sprint changes show immediately. Sprinting in any state resets to pose 0. Non-keyed bones fall back to a captured rest pose so empty/partial clips apply fully. Ceiling Y-offset is folded into the controller's single mesh-offset writer. PlayerCharacterController gains IsIdle / IsSprinting / IsOnCeiling / AnimatorOverridden accessors and SetPoseLocalYOffset; SetAnimatorRunning is guarded while a pose owns the Animator. Removed obsolete Paintman.controller. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
d867c617df
commit
c41fb398e4
18 files changed
+649
-465
No files matched your search
@@ -586,21 +586,6 @@ MonoBehaviour:
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 24
|
||||
m_Metrics:
|
||||
m_Width: 153.29688
|
||||
m_Height: 219.59375
|
||||
m_HorizontalBearingX: 9.296875
|
||||
m_HorizontalBearingY: 216
|
||||
m_HorizontalAdvance: 178.20312
|
||||
m_GlyphRect:
|
||||
m_X: 1609
|
||||
m_Y: 459
|
||||
m_Width: 154
|
||||
m_Height: 220
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 76
|
||||
m_Metrics:
|
||||
m_Width: 228.90625
|
||||
@@ -609,43 +594,13 @@ MonoBehaviour:
|
||||
m_HorizontalBearingY: 159
|
||||
m_HorizontalAdvance: 265.5
|
||||
m_GlyphRect:
|
||||
m_X: 1792
|
||||
m_X: 1609
|
||||
m_Y: 459
|
||||
m_Width: 230
|
||||
m_Height: 163
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 22
|
||||
m_Metrics:
|
||||
m_Width: 148.79688
|
||||
m_Height: 216.29688
|
||||
m_HorizontalBearingX: 22.203125
|
||||
m_HorizontalBearingY: 212.70312
|
||||
m_HorizontalAdvance: 178.20312
|
||||
m_GlyphRect:
|
||||
m_X: 1367
|
||||
m_Y: 515
|
||||
m_Width: 149
|
||||
m_Height: 217
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 21
|
||||
m_Metrics:
|
||||
m_Width: 153.29688
|
||||
m_Height: 219.59375
|
||||
m_HorizontalBearingX: 13.796875
|
||||
m_HorizontalBearingY: 216
|
||||
m_HorizontalAdvance: 178.20312
|
||||
m_GlyphRect:
|
||||
m_X: 1792
|
||||
m_Y: 651
|
||||
m_Width: 155
|
||||
m_Height: 220
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 74
|
||||
m_Metrics:
|
||||
m_Width: 138
|
||||
@@ -654,13 +609,43 @@ MonoBehaviour:
|
||||
m_HorizontalBearingY: 218.40625
|
||||
m_HorizontalAdvance: 171.90625
|
||||
m_GlyphRect:
|
||||
m_X: 1545
|
||||
m_Y: 708
|
||||
m_X: 1868
|
||||
m_Y: 459
|
||||
m_Width: 139
|
||||
m_Height: 223
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 21
|
||||
m_Metrics:
|
||||
m_Width: 153.29688
|
||||
m_Height: 219.59375
|
||||
m_HorizontalBearingX: 13.796875
|
||||
m_HorizontalBearingY: 216
|
||||
m_HorizontalAdvance: 178.20312
|
||||
m_GlyphRect:
|
||||
m_X: 1367
|
||||
m_Y: 515
|
||||
m_Width: 155
|
||||
m_Height: 220
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 22
|
||||
m_Metrics:
|
||||
m_Width: 148.79688
|
||||
m_Height: 216.29688
|
||||
m_HorizontalBearingX: 22.203125
|
||||
m_HorizontalBearingY: 212.70312
|
||||
m_HorizontalAdvance: 178.20312
|
||||
m_GlyphRect:
|
||||
m_X: 1551
|
||||
m_Y: 651
|
||||
m_Width: 149
|
||||
m_Height: 217
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 47
|
||||
m_Metrics:
|
||||
m_Width: 163.5
|
||||
@@ -685,7 +670,7 @@ MonoBehaviour:
|
||||
m_HorizontalAdvance: 237.59375
|
||||
m_GlyphRect:
|
||||
m_X: 1229
|
||||
m_Y: 761
|
||||
m_Y: 764
|
||||
m_Width: 211
|
||||
m_Height: 223
|
||||
m_Scale: 1
|
||||
@@ -751,21 +736,6 @@ MonoBehaviour:
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 18
|
||||
m_Metrics:
|
||||
m_Width: 149.39062
|
||||
m_Height: 219.59375
|
||||
m_HorizontalBearingX: 14.703125
|
||||
m_HorizontalBearingY: 216
|
||||
m_HorizontalAdvance: 178.20312
|
||||
m_GlyphRect:
|
||||
m_X: 244
|
||||
m_Y: 959
|
||||
m_Width: 151
|
||||
m_Height: 220
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
m_CharacterTable:
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 8230
|
||||
@@ -907,25 +877,21 @@ MonoBehaviour:
|
||||
m_Unicode: 99
|
||||
m_GlyphIndex: 66
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 57
|
||||
m_GlyphIndex: 24
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 109
|
||||
m_GlyphIndex: 76
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 55
|
||||
m_GlyphIndex: 22
|
||||
m_Unicode: 107
|
||||
m_GlyphIndex: 74
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 54
|
||||
m_GlyphIndex: 21
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 107
|
||||
m_GlyphIndex: 74
|
||||
m_Unicode: 55
|
||||
m_GlyphIndex: 22
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 80
|
||||
@@ -951,10 +917,6 @@ MonoBehaviour:
|
||||
m_Unicode: 73
|
||||
m_GlyphIndex: 40
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 51
|
||||
m_GlyphIndex: 18
|
||||
m_Scale: 1
|
||||
m_AtlasTextures:
|
||||
- {fileID: 2664084111089754775}
|
||||
m_AtlasTextureIndex: 0
|
||||
@@ -1103,31 +1065,27 @@ MonoBehaviour:
|
||||
m_Width: 182
|
||||
m_Height: 192
|
||||
- m_X: 1594
|
||||
m_Y: 444
|
||||
m_Width: 183
|
||||
m_Height: 249
|
||||
- m_X: 1777
|
||||
m_Y: 444
|
||||
m_Width: 259
|
||||
m_Height: 192
|
||||
- m_X: 1352
|
||||
m_Y: 500
|
||||
m_Width: 178
|
||||
m_Height: 246
|
||||
- m_X: 1777
|
||||
m_Y: 636
|
||||
m_Width: 184
|
||||
m_Height: 249
|
||||
- m_X: 1530
|
||||
m_Y: 693
|
||||
- m_X: 1853
|
||||
m_Y: 444
|
||||
m_Width: 168
|
||||
m_Height: 252
|
||||
- m_X: 1352
|
||||
m_Y: 500
|
||||
m_Width: 184
|
||||
m_Height: 249
|
||||
- m_X: 1536
|
||||
m_Y: 636
|
||||
m_Width: 178
|
||||
m_Height: 246
|
||||
- m_X: 1020
|
||||
m_Y: 628
|
||||
m_Width: 194
|
||||
m_Height: 248
|
||||
- m_X: 1214
|
||||
m_Y: 746
|
||||
m_Y: 749
|
||||
m_Width: 240
|
||||
m_Height: 252
|
||||
- m_X: 822
|
||||
@@ -1146,10 +1104,6 @@ MonoBehaviour:
|
||||
m_Y: 192
|
||||
m_Width: 74
|
||||
m_Height: 252
|
||||
- m_X: 229
|
||||
m_Y: 944
|
||||
m_Width: 180
|
||||
m_Height: 249
|
||||
m_FreeGlyphRects:
|
||||
- m_X: 189
|
||||
m_Y: 74
|
||||
@@ -1191,10 +1145,18 @@ MonoBehaviour:
|
||||
m_Y: 694
|
||||
m_Width: 78
|
||||
m_Height: 193
|
||||
- m_X: 0
|
||||
m_Y: 1139
|
||||
m_Width: 2047
|
||||
m_Height: 908
|
||||
- m_X: 103
|
||||
m_Y: 864
|
||||
m_Width: 214
|
||||
m_Height: 23
|
||||
- m_X: 229
|
||||
m_Y: 864
|
||||
m_Width: 88
|
||||
m_Height: 1183
|
||||
- m_X: 1373
|
||||
m_Y: 192
|
||||
m_Width: 10
|
||||
@@ -1211,30 +1173,26 @@ MonoBehaviour:
|
||||
m_Y: 252
|
||||
m_Width: 17
|
||||
m_Height: 192
|
||||
- m_X: 2036
|
||||
- m_X: 2021
|
||||
m_Y: 0
|
||||
m_Width: 11
|
||||
m_Width: 26
|
||||
m_Height: 2047
|
||||
- m_X: 1352
|
||||
m_Y: 384
|
||||
m_Width: 21
|
||||
m_Height: 116
|
||||
- m_X: 1961
|
||||
m_Y: 636
|
||||
m_Width: 86
|
||||
m_Height: 1411
|
||||
- m_X: 1530
|
||||
- m_X: 1536
|
||||
m_Y: 500
|
||||
m_Width: 64
|
||||
m_Height: 193
|
||||
- m_X: 1698
|
||||
m_Y: 885
|
||||
m_Width: 349
|
||||
m_Height: 1162
|
||||
- m_X: 1698
|
||||
m_Y: 693
|
||||
m_Width: 79
|
||||
m_Height: 1354
|
||||
m_Width: 58
|
||||
m_Height: 136
|
||||
- m_X: 1714
|
||||
m_Y: 696
|
||||
m_Width: 333
|
||||
m_Height: 1351
|
||||
- m_X: 1714
|
||||
m_Y: 636
|
||||
m_Width: 139
|
||||
m_Height: 1411
|
||||
- m_X: 1020
|
||||
m_Y: 384
|
||||
m_Width: 20
|
||||
@@ -1244,17 +1202,17 @@ MonoBehaviour:
|
||||
m_Width: 123
|
||||
m_Height: 70
|
||||
- m_X: 1454
|
||||
m_Y: 945
|
||||
m_Y: 882
|
||||
m_Width: 593
|
||||
m_Height: 1102
|
||||
m_Height: 1165
|
||||
- m_X: 1214
|
||||
m_Y: 628
|
||||
m_Width: 138
|
||||
m_Height: 118
|
||||
m_Height: 121
|
||||
- m_X: 1454
|
||||
m_Y: 746
|
||||
m_Width: 76
|
||||
m_Height: 1301
|
||||
m_Y: 749
|
||||
m_Width: 82
|
||||
m_Height: 1298
|
||||
- m_X: 822
|
||||
m_Y: 490
|
||||
m_Width: 17
|
||||
@@ -1267,6 +1225,10 @@ MonoBehaviour:
|
||||
m_Y: 695
|
||||
m_Width: 73
|
||||
m_Height: 59
|
||||
- m_X: 229
|
||||
m_Y: 944
|
||||
m_Width: 269
|
||||
m_Height: 1103
|
||||
- m_X: 641
|
||||
m_Y: 736
|
||||
m_Width: 181
|
||||
@@ -1283,10 +1245,18 @@ MonoBehaviour:
|
||||
m_Y: 876
|
||||
m_Width: 7
|
||||
m_Height: 1171
|
||||
- m_X: 229
|
||||
m_Y: 1128
|
||||
m_Width: 1818
|
||||
m_Height: 919
|
||||
- m_X: 229
|
||||
m_Y: 1006
|
||||
m_Width: 789
|
||||
m_Height: 1041
|
||||
- m_X: 1207
|
||||
m_Y: 998
|
||||
m_Y: 1001
|
||||
m_Width: 840
|
||||
m_Height: 1049
|
||||
m_Height: 1046
|
||||
- m_X: 733
|
||||
m_Y: 877
|
||||
m_Width: 285
|
||||
@@ -1299,30 +1269,6 @@ MonoBehaviour:
|
||||
m_Y: 0
|
||||
m_Width: 34
|
||||
m_Height: 444
|
||||
- m_X: 0
|
||||
m_Y: 1193
|
||||
m_Width: 2047
|
||||
m_Height: 854
|
||||
- m_X: 0
|
||||
m_Y: 1139
|
||||
m_Width: 229
|
||||
m_Height: 908
|
||||
- m_X: 229
|
||||
m_Y: 864
|
||||
m_Width: 88
|
||||
m_Height: 80
|
||||
- m_X: 409
|
||||
m_Y: 944
|
||||
m_Width: 89
|
||||
m_Height: 1103
|
||||
- m_X: 409
|
||||
m_Y: 1128
|
||||
m_Width: 1638
|
||||
m_Height: 919
|
||||
- m_X: 409
|
||||
m_Y: 1006
|
||||
m_Width: 609
|
||||
m_Height: 1041
|
||||
m_FontFeatureTable:
|
||||
m_MultipleSubstitutionRecords: []
|
||||
m_LigatureSubstitutionRecords:
|
||||
@@ -13960,7 +13906,7 @@ Texture2D:
|
||||
m_ColorSpace: 1
|
||||
m_PlatformBlob:
|
||||
image data: 4194304
|
||||
_typelessdata: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204050506070809090807060505040301000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000103040505060708090908070605050402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020405050607080909080706050504030100000000000000000000000000000000000000000000000000000000000000000000000000000003050607080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808Line truncated
|
||||
_typelessdata: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204050506070809090807060505040301000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000103040505060708090908070605050402000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020405050607080909080706050504030100000000000000000000000000000000000000000000000000000000000000000000000000000003050607080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808080808Line truncated
|
||||
m_StreamData:
|
||||
serializedVersion: 2
|
||||
offset: 0
|
||||
|
||||
Reference in new issue
Block a user