private static int CopyVectorsToRecastArray(IList <Vector3> renderVertices, IList <Vector3> vertices, int vecOffset) { if (renderVertices != null) { var length = renderVertices.Count; for (var i = 0; i < length; i++) { var vertex = renderVertices[i]; PositionUtil.TransformWoWCoordsToRecastCoords(ref vertex); vertices[vecOffset + i] = vertex; } vecOffset += renderVertices.Count; } return(vecOffset); }