diff --git a/docs/lang/articles/get-started/cloth_simulation.md b/docs/lang/articles/get-started/cloth_simulation.md index 8f1a805c9296c..1ffb40c482f81 100644 --- a/docs/lang/articles/get-started/cloth_simulation.md +++ b/docs/lang/articles/get-started/cloth_simulation.md @@ -295,7 +295,7 @@ def substep(): if offset_to_center.norm() <= ball_radius: # Velocity projection normal = offset_to_center.normalized() - v[i] -= min(v[i].dot(normal), 0) * normal + v[i] -= ti.min(v[i].dot(normal), 0) * normal # After working out the accumulative v[i], # work out the positions of each mass point x[i] += dt * v[i] @@ -451,7 +451,7 @@ def substep(): if offset_to_center.norm() <= ball_radius: # Velocity projection normal = offset_to_center.normalized() - v[i] -= min(v[i].dot(normal), 0) * normal + v[i] -= ti.min(v[i].dot(normal), 0) * normal x[i] += dt * v[i] @ti.kernel