Skip to content

Commit 4260d5a

Browse files
committed
little changes
1 parent f60aff3 commit 4260d5a

File tree

1 file changed

+2
-2
lines changed
  • src/contactDetection/ContactDetectionMPR

1 file changed

+2
-2
lines changed

src/contactDetection/ContactDetectionMPR/mpr.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ function tetrahedronEncloseOrigin(r0::SupportPoint{T}, r1::SupportPoint{T},
133133
success = false
134134
for i in 1:niter_max
135135
aux = cross(r1.p-r0.p,r3.p-r0.p)
136-
if dot(aux,r0.p) > neps
136+
if dot(aux,r0.p) > 0.0
137137
r2 = r3
138138
r3 = getSupportPoint(shapeA,shapeB,Basics.normalizeVector(aux), scale=scale)
139139
continue
140140
end
141141
aux = cross(r3.p-r0.p,r2.p-r0.p)
142-
if dot(aux,r0.p) > neps
142+
if dot(aux,r0.p) > 0.0
143143
r1 = r3
144144
r3 = getSupportPoint(shapeA,shapeB,Basics.normalizeVector(aux), scale=scale)
145145
continue

0 commit comments

Comments
 (0)