- Editado
Animating a hat attachment
Hello, so I was wondering what is the best method to animate a hat attachment (which can change graphic) on top of existing animations?
Say I have these animations: run, walk, jump, punch, kick...
and my character has the ability to wear different hats. Each hat should animate based on the body animation. Say a punch for example, a straw hat might pop off his head then fall back down. But a helmet wouldn't.
How should I go about animating this? Some quick thoughts:
- Animate run, walk, jump, punch, kick for every hat.
- Use skins for hats only, not sure how to create different animations though?
- Animate every hat in every animation and toggle on/off through code.
any ideas? Thanks.
If each hat actually moves differently, you could have one bone for each hat, and animate all those bones (effectively, animate all variations of the movement) of them per animation in the same animation. Then you can have skins specify which hat is visible at any time.
If most hats share movements, those hats that share the movement could share the same bone.
So, say, if you just categorized your hats into medium, light and heavy hats, you only need to animate 3 extra bones in all the animations. The three extra bones would then define the movement for the three kinds of hats. Then you could put the hats into skins that go into slots under the correct bones.
This is a bit wasteful (arguably insignificantly wasteful). But the alternative (making separate animations just for the hats) is more complicated to implement and animate right now, since the editor doesn't support simultaneous playback for multiple animations yet.
Thanks Pharan, I'll give that a go. So a skin doesn't need to define all graphics for an entire skeleton?
Pharan escribióBut the alternative (making separate animations just for the hats) is more complicated to implement and animate right now, since the editor doesn't support simultaneous playback for multiple animations yet.
Yeah, I come from a flash background and would solve this problem using a hat movieclip inside the character movieclip.
Hopefully one day...
When the Skeleton Attachment is done this will be pretty easy to do. https://trello.com/c/i2qfuFpj/84-attach ... r-skeleton Can't say when Nate will be able to get to that though.
That would be awesome and really helpful!
Do you think this will be implemented soon, like in the upcoming months?
I can't say for sure, Nate will know better when he can get to it.
Once IK is stable and done in the runtimes, then we'll look at other features.