/// <summary> /// Translates a set of vertices with a world space offset. /// /// This applies the mesh positions to both the <see cref="ProBuilderMesh"/> and the <see cref="UnityEngine.Mesh"/>. /// </summary> /// <param name="mesh">The mesh containing the vertices you want to translate.</param> /// <param name="indexes">An array of triangles pointing to the vertex positions that you want to translate.</param> /// <param name="offset">The offset to apply in world coordinates.</param> public static void TranslateVerticesInWorldSpace(this ProBuilderMesh mesh, int[] indexes, Vector3 offset) { if (mesh == null) { throw new ArgumentNullException("mesh"); } mesh.TranslateVerticesInWorldSpace(indexes, offset, 0f, false); }