From f88a41af729d153184a6a554440c0101486aa217 Mon Sep 17 00:00:00 2001 From: Rafael Ravedutti <rafaelravedutti@gmail.com> Date: Thu, 12 Oct 2023 00:38:24 +0200 Subject: [PATCH] Fix penetration depth reference Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com> --- examples/dem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dem.py b/examples/dem.py index 339dee7..c7b2f0b 100644 --- a/examples/dem.py +++ b/examples/dem.py @@ -4,7 +4,7 @@ import sys def linear_spring_dashpot(i, j): - delta_ij = -penetration_depth + delta_ij = -penetration_depth(i, j) skip_when(delta_ij < 0.0) velocity_wf_i = linear_velocity[i] + cross(angular_velocity[i], contact_point(i, j) - position[i]) -- GitLab