From Valve Developer Community
Revision as of 15:58, 29 September 2013 by Gambini (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The $autocenter QC command 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 could be useful when Creating custom gibs, to ensure that each gib has a sensible ModelOrigin (center) 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. Unfortunatelly, $autocenter only works on prop_static.