MeshProxy

Available in: Interface Scripts Client Entity Scripts Server Entity Scripts Assignment Client Scripts

A handle for a mesh in an entity, such as returned by Entities.getMeshes.
Methods

Deprecated:
Use the Graphics API instead.

Methods

getNumVertices() → {number}
Get the number of vertices in the mesh.
Deprecated:
Use the Graphics API instead.
Returns:
Integer number of vertices in the mesh.
Type: number
getPos(index) → {Vec3}
Get the position of a vertex in the mesh.
Parameters:
Name Type Description
index number Integer index of the mesh vertex.
Deprecated:
Use the Graphics API instead.
Returns:
Local position of the vertex relative to the mesh.
Type: Vec3