Skip to content

Commit

Permalink
Change data names
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Dec 10, 2024
1 parent c37d478 commit 7b9b492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python3/src/stlib3/physics/constraints/fixedbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def FixedBox(applyTo=None, atPositions=[-1.0, -1.0, -1.0, 1.0, 1.0, 1.0],
else:
c.addObject('BoxROI', position=position, name='BoxROI', box=atPositions, drawBoxes=doVisualization, doUpdate=doRecomputeDuringSimulation)

c.addObject('RestShapeSpringsForceField', points='@BoxROI.indices', stiffness=1e12)
c.addObject('RestShapeSpringsForceField', indices='@BoxROI.indices', stiffness=1e12)
return c

def createScene(rootNode):
Expand Down
2 changes: 1 addition & 1 deletion python3/src/stlib3/physics/constraints/fixedbox_prefab.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, *args, **kwargs):

def init(self):
self.addObject('BoxROI', name='BoxROI', box=self.boxCoords, drawBoxes=self.showBox)
self.addObject('RestShapeSpringsForceField', points='@BoxROI.indices', stiffness=1e12)
self.addObject('RestShapeSpringsForceField', indices='@BoxROI.indices', stiffness=1e12)


def createScene(rootnode):
Expand Down

0 comments on commit 7b9b492

Please sign in to comment.