Skip to content

ImportCollisionGeometry

Hariiiiiiii edited this page Feb 2, 2021 · 11 revisions

The importcollisiongeometry command is used to create a new .coll tag using a model in a format accepted by the Open Asset Import Library (Assimp). Arguments can be used to optionally generate BSP Physics and MOPP code blocks to allow this coll tag to also provide player collision. See the

Usage

importcollisiongeometry [mopp] [force] [debug] <input file directory> <tagname>

  • input file directory - the directory of the model file that you would like to import
  • tagname - the name which you would like to give to the new collision model tag that you are importing. this name must be unique and not currently used in the current cache.

Arguments

  • mopp - generate BSP Physics and MOPP code blocks to allow this coll tag to also provide player collision
  • force - bypass certain checks on model import including the open edge check. WARNING: collision models with open edges may cause severe physics issues
  • debug - increase verbosity of error output to help debug model issues

Model Requirements

Models imported using this command must have:

  • no open edges
  • no more than two surfaces sharing a single edge
  • no overlapping surfaces
  • no more than 65535 edges, vertices, or surfaces
Clone this wiki locally