Skip to content

Commit b8a187a

Browse files
committed
Changed to not automatically use Surface Thickness as a fallback for solids
This requires the Treat Solids As Surfaces setting to be enabled.
1 parent e699fe7 commit b8a187a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

kk_bullet_constraints_builder.zip

4 Bytes
Binary file not shown.

kk_bullet_constraints_builder/builder_prep.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,8 +892,10 @@ def calculateContactAreaBasedOnBoundaryBoxesForPair(objA, objB, sDistFallb, qNon
892892
geoContactAreaB = overlapAreaX +overlapAreaY +overlapAreaZ
893893

894894
### Or calculate contact area based on predefined custom thickness
895-
else:
895+
elif props.surfaceForced:
896896
geoContactAreaB = (overlapX +overlapY +overlapZ) *props.surfaceThickness
897+
else:
898+
geoContactAreaB = 0
897899

898900
### Calculate alternative contact area from object dimensions
899901
dimA = objA.dimensions

0 commit comments

Comments
 (0)