- Home /
Is it Possible to Blend, Toggle or Layer Keyed animation and Character Joints / Rigidbodies?
Hello,
I've got a character with a tail, and I'm hoping to figure out if it's possible to toggle or blend between controlling the tail through Rigidbodies and Character Joints during certain animation states, and keyed animation during others. I've been playing around with different setups, and not having much success.
Here's my specific setup: I've got a character with a tail and a few different animation clips. For the sake of simplicity, I'll just take two as an example, idle and walk. In the walk state, I'd like the tail movement to be driven by rigidbodies and character joints. For the idle, instead of just hanging limp, I'd like some keyed animation to play of the character lazily moving the tail around.
The issue I'm seeing is that if if my idle animation (which keys the tail) is in the animation graph, the physics joints don't take over during the walk state (which ignores the tail), however if all of the animations in my state graph mask the tail, the physics joints work as expected. It seems I can only either have an all physics driven tail, or an all keyframed one.
Upon import, if I mask the tail joints of both my walk and idle animations, the physics joints drive the tail during both states no problem, but if I go back and unmask the tail joints for the idle animation, I get keyed animation during the idle state, but the joints snap to default during the walk state.
I've also tried handling the tail animation on a separate layer. For this setup, I've applied no masking to my animations on import, but instead applied an avatar mask to each layer. The main layer ignores the tail, and the second layer ignores all but the tail. I get pretty much the same results with this setup. As soon as I introduce a state with keyed tail animation, I get no dynamics during the other states.
Does anyone know if it's possible to switch or blend between keyed and Character Joint driven animation during different states? Ideally, Id like to be able to blend or layer the two together.
Thanks
Your answer
Follow this Question
Related Questions
How could I achieve Active Ragdoll effect like Overgrowth in Unity? 0 Answers
Best way to move a rigid body to an empty's position? 0 Answers
Questions about physics based combat (animation + collision, hinge joints++) 0 Answers
Hinge Joint Glitch? 0 Answers
How should I make a animate fully physics based Active Ragdoll? 0 Answers