Skip to main content

Pendulum Chains

VNyan features a Pendulum chain physics system. Such systems are commonly used in 2D Vtuber models to simulate physics or create certain effects, and can be used in VNyan to the same end on 3D Vtuber models. It can be used to create eye wobbles, flowy arm or rig movements, and more! The Pendulum chain window can be opened from the Main Menu on the right of the app.

Creating Chains​

To create a Pendulum chain in VNyan, first set the Amount of Pendulums value in the bottom left of the Pendulums menu. This sets how many bones the new pendulum chain will have (up to 10 bones). Then press Add Chain, and a new entry will be created above it. Note that the chain length cannot be changed once created, so make sure you make it as long as you need. Generally, it is recommended to make your chain a bit longer than the length you will actually use, as more joints will help stabilize the chain's movement. Click the new entry to configure its setting in the window to the right of it.

Input Values​

Pendulum chains are moved or driven by either parameters, blendshapes, or a combination of both. These values will move the first bone of the chain, pulling or twisting the rest of the chain in return. The amount that the bone is moved is equal to the sum of Input value * Multiplier. In the Preview at the bottom of the window, you can see how your chain responds to input value changes in real-time. The way that the rest of the chain responds to this movement can be adjusted under the Pendulum settings next to the preview window. You can set multiple inputs to drive the chain by pressing the + icon.

Click here for an overview of the input settings for Pendulum chains.
NameDescription
TypeSpecify whether the input value is a blendshape or a parameter.
Value NameSpecify the name of the input blendshape or parameter.
MultiplierScale how much the input value moves the chain. Setting a negative scale number will reverse the driven motion. Multiplier must be set to a value not equal to 0 in order for the pendulum to be affected by the input!
EffectSet whether the input will move the top pendulum bone horizontally, or rotate the angle of the top pendulum bone. When using Pos X, the whole chain will shift left-to-right and come to rest in a vertical line. When using angle, the whole chain will rotate and sway, and come to rest at that new rotation. This might be useful if you want parameter changes to maintain some change in movement.

Output Values​

You can set multiple outputs for your pendulum chain to affect either blendshapes, parameters, the rotation of a game object attached to your model, or a combination of all three. Output values are determined by the left-to-right positions of the Pendulum bones (the blue dots), the multiplier value and the offset value. Each output value is linked to one specific Pendulum bone in the Bone # field. You can specify multiple output effects for the chain by pressing the + icon.

Click here for an overview of the output settings for Pendulum chains.
NameDescription
Bone #Set which pendulum bone the output is linked to. Bone # 1 corresponds to the first bone or point in the chain. As this effectively copies the input value to the output with a multiplier, this will likely not give useful output. Bone # 2 or higher will provide output that is more characteristic of Pendulum chains.
BlendshapeWhich blendshape should be driven by the specified bone if it is in a positive position (right half of the preview window).
Negative BlendshapeWhich blendshape should be driven by the specified bone if it is in a negative position (left half of the preview window). Specifying both Blendshape and Negative Blendshape can be used create back-and-forth movement between blendshapes.
ParameterOutput the pendulum bone position value into a named parameter, allowing you to use it in other graphs.
OffsetAdditively shift the named parameter by the specified amount. For example, if you want the value of this parameter to be 5 when the pendulum is in rest, you would set offset to 5. (This setting does not work for blendshape or Avatar GameObject values.)
Avatar GameObjectPendulum bone movement will rotate the specified game object attached to your avatar. This could be your model's main skeleton bone, additional bones like ear or tail bones, or any mesh that is part of you model.
TransformSpecify whether the pendulum bone should rotate the selected GameObject in the X, Y or Z rotation direction.
MultiplierScale pendulum bone output by the specified value. This can be used to effect larger/smaller changes. Multiplier must be set in order for the pendulum to have any effect on the output!

Pendulum Settings​

The sliders to the right of the Preview control the physical motion of your pendulum chain. In other words, these settings change how the bones in the pendulum respond to the movement initiated by the input values.

Click here for an overview of the Pendulum behavior settings.
NameDescription
DampingDetermine the drag on the pendulum motion, reducing oscillations or for how long the pendulum swings. Higher damping results in slower movement with fewer swings, while lower damping results in more chaotic movement with more swings.
ElasticityHow much force each bone transfers to the next bone. High elasticity will result in the chain moving in a straight line, while low elasticity will result pendulum bones largely unable to move their next bone.
StiffnessHow stiff the links are between each bone. Higher stiffness results in the chain bones moving all together, while lower stiffness causes pendulum bones to have more swing.
InertHow resistant each bone is to movement. Higher inertia means that more force/movement from each bone will be required to swing the next bone, resulting in more rigid left-to-right movement.