ducloc96

Stick Z Bow - YouTube
I want to be able to adjust the arms and chords when dragging on the screen like in the video, how should I tell the animator?
I am the dev unity.
Thanks for your help.
ducloc96
  • Сообщения: 8

Nate

You can find a bone and adjust its rotation, position, etc at runtime. The animator just needs to animate the arm to be straight and you'll rotate it as needed. For pulling back the arm, you can translate a bone and use IK, but it may be difficult not to move it too far. It'd be easier if the animator sets it up so the arm is fully back when a transform constraint is applied with a mix of 100%. Then you can set the mix of the constraint at runtime to get anything from the arm not back (0%) to all the way back (100%).
Аватара пользователя
Nate

Nate
  • Сообщения: 9288


Вернуться в Runtimes