$origin

From Valve Developer Community
Revision as of 16:17, 6 May 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search

The $origin QC command is used to offset the ModelOrigin from the EntityOrigin. 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
  • See also $autocenter, $illumposition, $masscenter.

Syntax

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

Refer to picture for axis manipulations.