$origin

From Valve Developer Community
Revision as of 16:40, 28 April 2008 by JeffLane (talk | contribs) (minor cleanup and info)
Jump to navigation Jump to search

The $origin QC Command is used to offset the center of a model. It shifts all the vertices and animations to the specified location. Also allows an optional z-axis rotation.

  • It is very useful for adjusting view models.
  • It is also useful for arranging a versatile cluster of separate models such as an entire building consisting of exterior_walls.mdl, roof.mdl, interior_walls.mdl, roof_details.mdl, etc

Syntax

This picture shows how origins are changed in the source engine.
$origin (x) (y) (z) [z rotation]

Refer to picture for axis manipulations.