$origin: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (minor cleanup and info)
Line 1: Line 1:
The [[$origin]] QC Command is used to ''offset'' the center of a model.  
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 [[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


==$origin syntax==
== Syntax ==


[[Image:Cssorigins.GIF|right|This picture shows how origins are changed in the source engine.]]
[[Image:Cssorigins.GIF|right|This picture shows how origins are changed in the source engine.]]
<code>$origin x y z</code>
 
$origin (x) (y) (z) [z rotation]


Refer to picture for axis manipulations.
Refer to picture for axis manipulations.


[[Category:QC Commands|O]]
[[Category:QC Commands|origin]]

Revision as of 16:40, 28 April 2008

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.