Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Animation specific limb constant angles

Open TheNinjaScout opened this issue 1 year ago • 0 comments

Adds a new character animation property "LimbConstantAngles" which is formatted like this: "limbID: constantangle;constanttorque, limbID2: constantangle2;constanttorque2, ..."

This allows specific limbs to assume certain angles with certain torque depending on the currently selected animation, allowing more control over how a character's limbs are posed, especially for non humanoid ones

Limb-defined constantangles and constanttorques will be used if there aren't any animation specific ones for that limb

Constanttorque is no longer applied to limbs if the character is stunned / unconscious (could add a way to circumvent this later, maybe with a limb specific boolean property and/or even an animation-wide one to allow things like custom death poses by swapping animation set after death, but not sure how worth it it is)

Example demonstration video Example mod overriding husk chimera to add some custom constant torque during run animation

TheNinjaScout avatar Dec 16 '24 01:12 TheNinjaScout