Commit 8f01bf3
Include rotation in movement detection for foot blend
When turning on the spot, hips translate very little but rotate
significantly. The speed calculation only used horizontal translation,
so rotation kept blendWeight at 1.0 and feet stayed planted at their
old positions instead of following the turn animation.
Now angular velocity of the hips is converted to equivalent linear speed
at foot level (angularSpeed * legLength) and added to the total speed.
Rotation triggers the animation blend just like walking does, so feet
follow the turning animation and re-plant at correct positions when
the turn completes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 674b146 commit 8f01bf3
1 file changed
Lines changed: 18 additions & 3 deletions
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
| 214 | + | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| |||
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
269 | | - | |
| 271 | + | |
270 | 272 | | |
| 273 | + | |
| 274 | + | |
271 | 275 | | |
| 276 | + | |
| 277 | + | |
272 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
273 | 288 | | |
274 | | - | |
275 | | - | |
| 289 | + | |
| 290 | + | |
276 | 291 | | |
277 | 292 | | |
278 | 293 | | |
| |||
0 commit comments