コード例 #1
0
        /// <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();
        }
コード例 #2
0
        /// <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();
        }