- Изменено
Replicating a gear train's functionality in Spine
Hello!
Looking back at the tank project, there were multiple isolated groups of wheels of the same size each constrained to each other.
There does not seem to be a way to rotate one bone for a fraction of its target while preserving the already rotated amount (Which of course makes sense when using a value below 100 for a rotation constraint, since the bone is constrained to that angle).
This makes replicating something like a gear train impossible. But maybe there is another workaround?
It would be great if there could be something like a "Transmission" setting to for example set the ratio of the two bone's rotational speeds.
I know I wrote "Gear train's functionality" in the title but the direction of rotation does not matter for my question. That could be a "positive" checkbox next to the Transmission option, maybe. I just did not know how to phrase it better and shorter
Thanks for any helpful answers
Is a transform constraint with rotate mix 100 and Relative
what you want? Relative adds the target bone's rotation to the constrained bones.
I guess your problem is what rotate mix != 100, then the rotation flips over to the shortest way around. That happens because the constraint is mixing between the constrained bone and target bone rotation. You could use 100, -100, 200, -200, etc to avoid that, but it may be too much rotation.
There isn't a mode for a transform constraint to just add it's transform values to the constrained bones. That might be interesting, we'll have to think on it. It might be inconvenient if the target bone needs to be near eg world 0,0 and you have more than a couple of those.
Nate написалYou could use 100, -100, 200, -200, etc to avoid that, but it may be too much rotation.
Thank you, that has solved my problem! I had never set the mix above 100.
Oh, excellent! Many sliders in Spine are limited to "reasonable" values but allow dragging past the start or end. You can also type values, often in smaller increments than what dragging the slider allows.