We’re working on a little dragon flight simulator (see demo). We’re using Mecanim; since it’s not a humanoid, of course, we use the Generic type.
The model (bought from the Asset Store) includes a few basic wing-flapping animations, but we’d like more control over this: for example, we want to be able to glide for a while between flaps, based on the angle and speed you’re going. But of course we can’t just stop the animation — we would need the head and body to continue to do the subtle movements that make it look alive.
I’ve verified that we can take control of specific joints by simply assigning to their rotation in LateUpdate. So, one option is to do exactly that, for all the joints in the wings.
But we do have the ability to add more animations using Cheetah3D… so before we go too far down a possibly weedy path, I thought I would ask the gurus: how would you approach a situation like this? Would you just make a bunch of different flapping/gliding animations, and transition between them based on flight parameters? Or would you take control of the wing joints in code, and calculate what they should be doing on the fly, so to speak?
Thanks,
- Joe