$origin: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (minor cleanup and info)
mNo edit summary
Line 1: Line 1:
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.
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 [[Viewmodel|view models]].
* It is very useful for adjusting [[Viewmodel|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
* 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 ==
== Syntax ==

Revision as of 16:17, 6 May 2008

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.