Skip to content

Commit

Permalink
Merge pull request #58 from alxbilger/bruteforcedetection
Browse files Browse the repository at this point in the history
Replace BruteForceDetection by BruteForceNarrowPhase+BVHNarrowPhase
  • Loading branch information
alxbilger authored Jul 9, 2021
2 parents f2b9745 + f304893 commit 913a405
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/stlib/scene/contactheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ def ContactHeader(applyTo, alarmDistance, contactDistance, frictionCoef=0.0):
rootNode : {
DefaultPipeline,
BruteForceDetection,
BruteForceBroadPhase,
BVHNarrowPhase,
RuleBasedContactManager,
LocalMinDistance
}
'''
if applyTo.getObject("DefaultPipeline", warning=False) is None:
applyTo.createObject('DefaultPipeline')

applyTo.createObject('BruteForceDetection')
applyTo.createObject('BruteForceBroadPhase', name="N2")
applyTo.createObject('BVHNarrowPhase')

applyTo.createObject('RuleBasedContactManager', responseParams="mu="+str(frictionCoef),
name='Response', response='FrictionContact')
Expand Down

0 comments on commit 913a405

Please sign in to comment.