Skip to content

Commit

Permalink
Replace BruteForceDetection by BruteForceNarrowPhase+BVHNarrowPhase
Browse files Browse the repository at this point in the history
BruteForceDetection is deprecated
  • Loading branch information
alxbilger committed Jul 8, 2021
1 parent f2b9745 commit f304893
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 f304893

Please sign in to comment.