Method TranslateVerticesInWorldSpace
TranslateVerticesInWorldSpace(ProBuilderMesh, int[], Vector3)
Translates a set of vertices with a world space offset.
This applies the mesh positions to both the ProBuilderMesh and the Mesh.
Declaration
public static void TranslateVerticesInWorldSpace(this ProBuilderMesh mesh, int[] indexes, Vector3 offset)
Parameters
Type | Name | Description |
---|---|---|
ProBuilderMesh | mesh | The mesh containing the vertices you want to translate. |
int[] | indexes | An array of triangles pointing to the vertex positions that you want to translate. |
Vector3 | offset | The offset to apply in world coordinates. |