$limitrotation: Difference between revisions
($limitrotation) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
By default, all bones will rotate through the shortest path - anything less than 180 - when blending between any two or more unrelated animations that are overlap with the bones well out of phase. This can cause problems with bones that can legally be posed at angles greater than 180 degrees away from each other, such as in two different animations or a hyper flexible wrist or hinge, but they shouldn't rotate through the shortest arc but through some less than 360 arc. | {{Multiple issues| | ||
{{Dead end|date=January 2024}} | |||
{{Orphan|date=January 2024}} | |||
}} | |||
{{This is a|QC command|name=$limitrotation}} By default, all bones will rotate through the shortest path - anything less than 180 - when blending between any two or more unrelated animations that are overlap with the bones well out of phase. This can cause problems with bones that can legally be posed at angles greater than 180 degrees away from each other, such as in two different animations or a hyper flexible wrist or hinge, but they shouldn't rotate through the shortest arc but through some less than 360 arc. | |||
Setting a bone to <code>$limitrotation</code> causes studiomdl to calculate the rotation domain of the bone as specified from the source animations and calculates a "mid point" rotation that all rotations compare against, which allows for greater then 180 degree rotations. | Setting a bone to <code>$limitrotation</code> causes studiomdl to calculate the rotation domain of the bone as specified from the source animations and calculates a "mid point" rotation that all rotations compare against, which allows for greater then 180 degree rotations. | ||
Line 13: | Line 18: | ||
$limitrotation "Antlion_Guard.pelvis" | $limitrotation "Antlion_Guard.pelvis" | ||
__NOTOC__ |
Latest revision as of 21:25, 18 July 2025




January 2024

You can help by

January 2024
$limitrotation
is a QC command available in all Source games. By default, all bones will rotate through the shortest path - anything less than 180 - when blending between any two or more unrelated animations that are overlap with the bones well out of phase. This can cause problems with bones that can legally be posed at angles greater than 180 degrees away from each other, such as in two different animations or a hyper flexible wrist or hinge, but they shouldn't rotate through the shortest arc but through some less than 360 arc.
Setting a bone to $limitrotation
causes studiomdl to calculate the rotation domain of the bone as specified from the source animations and calculates a "mid point" rotation that all rotations compare against, which allows for greater then 180 degree rotations.
Syntax
$limitrotation (bone name)
Example
$limitrotation "Antlion_Guard.claw1_L" $limitrotation "Antlion_Guard.claw2_L" $limitrotation "Antlion_Guard.pelvis"