if you want collision place it in engine and add collision. or just constraint the axis on the graph editor. Watch richard lico video on that. https://vimeo.com/297804505
Idk if you mean game engine but Id want to say in Blender
And there are ways of doing ragdolls in Blender, just wondering if it works on these bones
Yeh that’s because you are having in consideration the hierarchi that’s why he doesnt go down as it should. Some times that system is good like in tails, hair and some fk chains, in IK chains you dont want that to happen. Imagine that is only a particle grabbing that information of the and movement and applying physics. Thats what I do with my tool to fix that. I can further explain and show of some exemples if you didnt understand the concept. But this is great for hair and all the other stuff in fk. https://www.youtube.com/watch?v=-NVS1RseL60&t=9s
Is the hand constrained to another bone? I realized the other night that i only ensure transforms properly propagate down actual parent-child bone hierarchies, and it’s actually luck of the draw right now if constraints are evaluated in proper order!
I’m sure that’s something I can solve, but but constraints definitely add complexity to the dependency sorting I’m doing.
edit: actually I just looked at a similar setup, and in this case I think its a specific issue with how I calculate the translational input between frames, and it shows up when the bone being jiggled has rotational keys on it. when I don’t key the hand rotation, it behaves much better (yellow bone is meant to represent a disconnected ‘hand’ ik bone):
so thats a bug I should be able to fix
I’d love to figure out some sort of collision solution, although I’m sure it would bump up the complexity a bunch. a while back I tried a simple sphere collision test for bones, but I’m not sure how scalable/performant it would be or how it would tie into the rest of the jiggling effect. the whole thing is more the illusion of physics than it is actual physics!
wiggle_bones1_3_2.py (16.1 KB)
I think this should address the hand jiggling incorrectly
good news! I noticed the other suggested feature of baking the jiggle to an additive animation layer is actually supported by default in blender 2.8!
Nice, so its like non Destructive then ?
Nice to see that youre still updating this, havent found any issues since the release which included gravity.
But i was also wondering about bone based collisions, i know you can assign vertex groups for softbody physics so maybe that would be an option?
Anyway, great work shteeve - its appreciated.
this is an early experiment I’d tried. I might re-visit to see if I can incorporate it into my jiggle script at all. I haven’t really thought through how well it would handle more than one sphere collider though!
to your point about soft body or cloth physics, I’ve definitely done techniques where you make a simulation mesh, vertex parent empties to the vertices, and then use stretch-to constraints between the empties to make a bone chain follow the simulated surface. but once you start getting all those intermediate systems and helper objects involved, the rig becomes a lot more difficult to manage. so for the most part im trying to keep this script as self-contained and general as possible !
works well in viewport. on render animation blender closes. any idea why that could be ?
you need to bake the animation to the controllers an then turn the physics off on the bones
Not good that it crashes blender though! I’ll take a peak to see if there’s anything obvious causing that, sorry!
Just for curiosity, is this not related to:
and if not why?
long story short, I started this as an evening project for myself because I was eager to use jiggle bones in 2.8 and it hadn’t been ported yet. turns out he did port just as I was finishing my version, so in its original purpose, its kinda redundant.
however, there are a few things that I put into my version that are useful to at least me:
-I tried to make sure performance scales with the number of jiggle bones, not the complexity of the armature (I got a very choppy frame rates when using the original jiggle armature with rigify for example)
-I also wanted to be able to animate jiggling bones and have the jiggle be applied on top of that. maybe I was using it wrong, but I could never quite get that working in the jiggle armature script.
-as a tease, I’m making (slow) progress on a spherical collision model that might be helpful in some setups.
Spherical collision ciuld be usefull for simulating hair rig. Tho with logn hair it may need few spherical collision objects.
totally! the goal I’m thinking is to have have collections of colliders that bones can consider. capsule colliders would probably be ideal for characters, but I’m figuring I’ll start with a spheres for now
Great. If you manage to implement collisions for wiggle bones i will definitely switch to 2.8
Great job mate, I wish this could become a part of blender at some point, as in part of the bones panel