This article's documentation is for anything that uses the Source engine. Click here for more information.

$collapsebones: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(more info)
mNo edit summary
Line 1: Line 1:
Removes all bones that aren't connected to vertices, attachment points, ik rules, or don't animate. Vertices or attachment points that are connected to a collapsed bone are reconnected to the bones parent.  
{{this is a|c0|name=$collapsebones}} It removes all bones that aren't connected to vertices, attachment points, ik rules, or don't animate. Vertices or attachment points that are connected to a collapsed bone are reconnected to the bones parent.  


{{tip|When building an animation only .mdl or a vertex-only .mdl, you'll want to do this before you create the [[$definebone]], then remove this command.}}
{{tip|When building an animation only .mdl or a vertex-only .mdl, you'll want to do this before you create the [[$definebone]], then remove this command.}}

Revision as of 19:25, 22 December 2023

$collapsebones is a c0 available in all Source Source games. It removes all bones that aren't connected to vertices, attachment points, ik rules, or don't animate. Vertices or attachment points that are connected to a collapsed bone are reconnected to the bones parent.

Tip.pngTip:When building an animation only .mdl or a vertex-only .mdl, you'll want to do this before you create the $definebone, then remove this command.

Syntax

$collapsebones