$root: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(minor cleanup)
Line 2: Line 2:
<!-- The exact behaviors should be explained, does this link other roots to the specified bone? What happens to it's parents? -->
<!-- The exact behaviors should be explained, does this link other roots to the specified bone? What happens to it's parents? -->


Changes the hierarchy so that the specified bone becomes the root. This command is usually used to remove controller bones from the animation process.
Resets what bone is used as the "root" bone if there are multiple root - no parent - bones. The root bone is used for all movement and rotation calculations, as well as setting the root bone for ragdolls. This command is usually used to remove controller bones from the animation process.


==Description==
== Syntax ==


  $root "bone-name"
  $root <bone name>
 
== Example ==


==Example==
  $modelname "npcs/dog.mdl"
  $modelname "npcs/dog.mdl"
  $cdmaterials "models/npcs/"
  $cdmaterials "models/npcs/"
Line 16: Line 17:




[[Category:QC Commands]]
[[Category:QC Commands|root]]

Revision as of 16:02, 28 April 2008

Stub

This article or section is a stub. You can help by expanding it.

Resets what bone is used as the "root" bone if there are multiple root - no parent - bones. The root bone is used for all movement and rotation calculations, as well as setting the root bone for ragdolls. This command is usually used to remove controller bones from the animation process.

Syntax

$root <bone name>

Example

$modelname "npcs/dog.mdl"
$cdmaterials "models/npcs/"
$model "Dog" "dog.smd"
$root "pelvis"
$sequence "idle" "idle.smd"