Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I want my character to aim with the mouse so, arms and head must move following mouse cursor and when the character is stand still it could change its stance a bit to accommodate the arms position. I used to use skeletal systems and in this situation I would use a bone that would move both arms at once but it seems Unity animation only supports tweenings. Can this be done with this system?

On the other hand how would you setup the character to easily make it follow shooting position with head and arms without moving all elements from code? As an example, if I had bones I would have set one parent bone for arms and use it to move both at once, etc. I guess IK and constrains is the way to go.

share|improve this question
    
When you say "I used to use skeletal systems", do you mean in non-Unity projects? Because Unity does have some 2D skeleton animation tools in the Asset Store. Have you looked at them? –  pek Mar 11 at 1:16
    
Yes, like smooth moves. I came across it but have not tried it yet. Anyway, I think my question is api/engine agnostic. In a situation like this that you want to move some parts of the character to make it accommodate to the new firing position (arms, head, etc...) do you ussually do this through code? Or there is an easier way to let the artist setup the skeleton with some ik and constraints and the programmer only has to handle and move the firing position? –  Notbad Mar 11 at 10:02

1 Answer 1

up vote 0 down vote accepted

Use the excellent Unity Sprites and Bones: https://github.com/Banbury/UnitySpritesAndBones

Didn't make it to the asset source due to being completely free and open source. It has inverse kinematics and you can use it for this use case.

share|improve this answer
    
Thanks did not notice it :). –  Notbad Apr 8 at 15:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.