$origin: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 2: Line 2:


This is useful when adjusting [[Viewmodel|view models]], for ensuring that models don't spawn inside the world, and helping in the arranging of clusters of separate models that need to be aligned precisely with each other (e.g. parts of a building).
This is useful when adjusting [[Viewmodel|view models]], for ensuring that models don't spawn inside the world, and helping in the arranging of clusters of separate models that need to be aligned precisely with each other (e.g. parts of a building).
[[Image:Cssorigins.GIF|center]]


== Syntax ==
== Syntax ==
Line 10: Line 8:


Note that Z's value is reversed.
Note that Z's value is reversed.
== With viewmodels ==
[[Image:Cssorigins.GIF|center]]


== See also ==
== See also ==

Revision as of 10:18, 13 January 2009

The QC command $origin adjusts the position of a model within its own local space. When the model is created, it will be offset by the X, Y, -Z and Z-rotation values provided.

This is useful when adjusting view models, for ensuring that models don't spawn inside the world, and helping in the arranging of clusters of separate models that need to be aligned precisely with each other (e.g. parts of a building).

Syntax

$origin <x> <y> <-z> [z rotation]

Note that Z's value is reversed.

With viewmodels

Cssorigins.GIF

See also