$origin: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
The [[$origin]] QC Command is used to ''offset'' the center of a model in the source engine.  
The [[$origin]] QC Command is used to ''offset'' the center of a model.  
 
* 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==
==$origin 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><br>
<code>$origin x y z</code>
 
Refer to picture for axis manipulations.
Refer to picture for axis manipulations.


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

Revision as of 12:13, 27 April 2008

The $origin QC Command is used to offset the center of a model.

  • 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

$origin syntax

This picture shows how origins are changed in the source engine.

$origin x y z

Refer to picture for axis manipulations.