Skip to content

Mesh

A trimesh element specified by an asset. If the file includes materials, they are applied too. The supported format is .glb.

By default, for mesh used in collision, each component of the glb file is simplified with a convex shape. It is adviced to use a preprocessing tool to separate the glb into convex shapes previously (i.e: V-HACD).

Mandatory children

  • Model: Model asset GUID.

    • Var: smtk_guid
    • Type: "constant"
    • Default:
  • Scale: Scale the mesh's axis-aligned-bounding-box.

    • Var: smtk_vector3
    • Type: Input
    • Default: "1 1 1"
    • Values info: "x y z"

Optional children

  • As_convex_hull: If this optional variable is set to true, the convex hull is computed for the whole model instead of each part separately.

    • Var: smtk_bool
    • Type: Constant
    • Default: true
  • As_triangle_mesh: If this optional variable is set to true, the model is used as is. It works only for static links.

    • Var: smtk_bool
    • Type: Constant
    • Default: true
  • simplify: If this optional variable is set to true, a convex hull will be automatically created for the model.

    • Var: smtk_bool
    • Type: Constant
    • Default: true