根據射擊準心會即時運算讓頭抬起低頭各種角度,且頭髮自然轉動
直接旋轉臉和頭髮的話頭髮,會整陀跟著轉動,長頭髮尤其明顯很奇怪
請問該如何抬頭低頭時頭髮各種角度也能自然轉動呢
請問2d橫軸怎麼根據準心即時抬頭低頭
要讓角色的頭部根據準心即時抬頭或低頭,並且讓頭髮自然地隨著頭部的運動而轉動,你可以使用Spine中的變形約束(Transform Constraints)和物理模擬來達到這個效果。
使用變形約束:你可以將頭髮的骨骼設置為頭部骨骼的子骨骼,然後使用變形約束來控制頭髮的運動。這樣當頭部骨骼旋轉時,頭髮會隨之運動,但你可以通過調整約束的混合比例來讓頭髮的運動看起來更加自然。
使用物理模擬:在運行時,你可以使用物理模擬來自動計算頭髮的次要運動。這樣可以讓頭髮在角色抬頭或低頭時自然地擺動,而不需要手動動畫。
這樣的設置可以讓角色的頭髮在頭部運動時看起來更加自然,特別是對於長頭髮的角色。
There are several solutions to get the hair to follow gravity independently from the head rotation.
Probably a simple and effective one would consist in having the hair not parented to the head, so that it is not influenced by its rotation, but then using a transform constraint to get the hair to follow the head translation. Optionally you could even sneak just a little bit of rotation influence.
A second option could be to disable "inherit rotation" for the hair bone. This one comes with the drawback that scale and rotations would not influence the hair the same way anymore.
A third option could be to apply gravity to the hair using physics.