$autocenter: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (minor cleanup) |
||
Line 1: | Line 1: | ||
The [[QC command]] [[$autocenter]] moves the model so that its [[$origin]] is at the center of its [[bounding box]]. | The [[QC command]] [[$autocenter]] moves the model so that its [[$origin]] is at the center of its [[bounding box]]. | ||
* It also adds an [[attachment point]] called "placementOrigin" which is the offset to the original origin. | * It also adds an [[attachment point]] called "placementOrigin" which is the offset to the original origin. | ||
* This is useful for [[building gibs]] so they have reasonable origins (centered) for lighting, | * This is useful for [[Gibs|building gibs]] so they have reasonable origins (centered) for lighting, collision, etc. and spawn in the correct position when the parent model breaks. Simply model the gibs as a collection - where you'd want them to be placed, then export them separately and add <code>$autocenter</code> to each gib's QC file. | ||
== | == Syntax == | ||
$autocenter | |||
[[Category:QC Commands]] | [[Category:QC Commands|autocenter]]__NOTOC__ |
Revision as of 13:43, 28 April 2008
The QC command $autocenter moves the model so that its $origin is at the center of its bounding box.
- It also adds an attachment point called "placementOrigin" which is the offset to the original origin.
- This is useful for building gibs so they have reasonable origins (centered) for lighting, collision, etc. and spawn in the correct position when the parent model breaks. Simply model the gibs as a collection - where you'd want them to be placed, then export them separately and add
$autocenter
to each gib's QC file.
Syntax
$autocenter