/// <summary> /// Applies the vertexData to the deform mesh. /// </summary> protected void ApplyVertexDataToTarget(NormalsCalculationMode normalsCalculation, float smoothingAngle) { VertexDataUtil.ApplyVertexData(vertexData, deformMesh); UpdateNormals(normalsCalculation, smoothingAngle); deformMesh.RecalculateBounds(); }
/// <summary> /// Applies the vertexData to the deform mesh. /// </summary> protected void ApplyVertexDataToTarget(NormalsCalculationMode normalsCalculation) { VertexDataUtil.ApplyVertexData(vertexData, deformMesh); if (meshCollider != null) { meshCollider.inflateMesh = true; meshCollider.sharedMesh = deformMesh; } UpdateNormals(normalsCalculation); deformMesh.RecalculateBounds(); }