$autocenter: Difference between revisions
Jump to navigation
Jump to search
m (minor cleanup) |
(cleanup) |
||
Line 1: | Line 1: | ||
The [[QC command]] [[$autocenter]] | The [[QC command]] [[$autocenter]] aligns the model's [[$origin]] to the center of its [[bounding box]] and creates an [[attachment point]] called "placementOrigin" where its origin used to be. | ||
* This is useful when [[Creating a gibset]], to ensure that each gib has a sensible ModelOrigin (centered) for lighting, collision, etc. but spawns in the correct position relative to its parent breakable model. Simply model the gibs as a cluster - in their spawn positions, then export each gib separately and add <code>$autocenter</code> to each gib's QC file. | |||
* This is useful | |||
== Syntax == | == Syntax == |
Revision as of 08:31, 6 May 2008
The QC command $autocenter aligns the model's $origin to the center of its bounding box and creates an attachment point called "placementOrigin" where its origin used to be.
- This is useful when Creating a gibset, to ensure that each gib has a sensible ModelOrigin (centered) for lighting, collision, etc. but spawns in the correct position relative to its parent breakable model. Simply model the gibs as a cluster - in their spawn positions, then export each gib separately and add
$autocenter
to each gib's QC file.
Syntax
$autocenter