$limitrotation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
($limitrotation)
 
m (clean up, added orphan, deadend tags)
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}}
}}
 
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"


[[Category:QC Commands|limitrotation]]__NOTOC__
__NOTOC__
 
[[Category:QC Commands|limitrotation]]{{delete|reason=unused}}

Revision as of 08:38, 21 January 2024

Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

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"
Warning icon.png
This article has been marked as a candidate for speedy deletion because it is unused.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.