Skip to content

Mesh

The Mesh class extends the Item class to represent a three-dimensional mesh object within the engine.

Inherits from

Item

Usage

To use this class, add the following require at the top of your script:

local Mesh = require 'engine/items/mesh'

Reference

create

static create(self, attributes)

Create a new mesh

Parameters

  • self
  • attributes (table): list of attributes. without, the mesh will be created with default values

Returns

  • Mesh: of the created mesh