$origin: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (categorized)
No edit summary
Line 1: Line 1:
The [[$origin]] QC Command is used to ''offset'' the center of a model in the source engine.
* 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
==$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.]]
=$origin command=
$origin is a [[QC_Commands|QC Command]] that offsets the center of a model in the source engine. This command is very useful for adjusting [[Viewmodel|view models]].
=$origin syntax=
<code>$origin x y z</code><br>
<code>$origin x y z</code><br>
Refer to picture for axis manipulations.
Refer to picture for axis manipulations.


[[Category:QC Commands]]
[[Category:QC Commands]]

Revision as of 10:04, 30 March 2008

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

  • 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.