From e59408a40962141a8b1302fdffe5efab8d7a3c5b Mon Sep 17 00:00:00 2001 From: Charalampos <64330098+charalamm@users.noreply.github.com> Date: Sat, 13 May 2023 14:26:26 +0200 Subject: [PATCH] Fix deprecation warning cloth_simulation.md --- docs/lang/articles/get-started/cloth_simulation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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