这篇条目有关 Source引擎。如需详情,点击这里。

$origin

From Valve Developer Community
< Zh
Jump to navigation Jump to search
Info content.png
This page is Machine translated
It is not recommended to use machine translation without any corrections.
If the article is not corrected in the long term, it will be removed.
Also, please make sure the article complies with the alternate languages guide.(en)
English (en)Русский (ru)中文 (zh)Translate (Translate)

$origin是一个QC 命令(en),可在所有的 起源 起源 游戏中使用。 该命令用于调整模型在自身局部空间中的位置(以及可选的Z轴旋转)。在编译时,模型将根据提供的X、Y、-Z坐标及Z轴旋转值进行偏移。

此功能适用于调整视图模型(en),确保模型不会生成在场景内部,并帮助精确对齐需要组合的多个独立模型(例如建筑物的部件)。

Note.png注意:此命令不会调整所有元素的位置。它会调整网格、骨骼和附着点(en),但不会影响其他元素如碰撞框($hbox(en))。
Note.png注意:若模型使用了$includemodel(en),则$origin命令无效。

语法

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

注意Z值需取反。

视图模型应用

Cssorigins.GIF

另见