$autocenter: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
The [[QC | 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, bboxes, etc and spawn in the correct position when the parent model breaks. Simply model the gibs in XSI as a collection - where you'd want them to be placed, then export them separately and add $autocenter to each gib's QC file. | * This is useful for [[building gibs]] so they have reasonable origins (centered) for lighting, bboxes, etc and spawn in the correct position when the parent model breaks. Simply model the gibs in XSI as a collection - where you'd want them to be placed, then export them separately and add $autocenter to each gib's QC file. |
Revision as of 16:27, 8 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, bboxes, etc and spawn in the correct position when the parent model breaks. Simply model the gibs in XSI as a collection - where you'd want them to be placed, then export them separately and add $autocenter to each gib's QC file.
Example Syntax
Todo: $autocenter syntax