修改水

This commit is contained in:
2026-01-01 22:00:33 +08:00
parent 040a222bd6
commit 9ceffccd39
1800 changed files with 103929 additions and 139495 deletions

View File

@@ -127,9 +127,6 @@ namespace Obi
yield return new CoroutineJob.ProgressInfo("ObiRod: generating particles...", i / (float)m_ActiveParticleCount);
}
// Deformable edges:
CreateDeformableEdges(numSegments);
// Create edge simplices:
CreateSimplices(numSegments);
@@ -145,12 +142,6 @@ namespace Obi
while (bc.MoveNext())
yield return bc.Current;
// Create aerodynamic constraints:
IEnumerator ac = CreateAerodynamicConstraints();
while (ac.MoveNext())
yield return ac.Current;
// Create chain constraints:
IEnumerator cc = CreateChainConstraints();
@@ -159,6 +150,7 @@ namespace Obi
}
protected virtual IEnumerator CreateStretchShearConstraints(List<Vector3> particleNormals)
{
stretchShearConstraintsData = new ObiStretchShearConstraintsData();
@@ -167,7 +159,8 @@ namespace Obi
stretchShearConstraintsData.AddBatch(new ObiStretchShearConstraintsBatch());
// rotation minimizing frame:
ObiPathFrame frame = ObiPathFrame.Identity;
ObiPathFrame frame = new ObiPathFrame();
frame.Reset();
for (int i = 0; i < totalParticles - 1; i++)
{