Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Dec 10, 2024
1 parent 3b51664 commit 86e2b8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def createScene(rootNode):

object = simulation.addChild('Object')
object.addObject('MechanicalObject', template='Vec1', position=0.)
object.addObject("RestShapeSpringsForceField", d_indices[0], stiffness=1e1)
object.addObject("RestShapeSpringsForceField", indices=[0], stiffness=1e1)
# Try to change the data field "value" from the GUI
object.addObject('JointConstraint', template='Vec1', index=0, value=0, valueType="displacement",
minDisplacement=-pi, maxDisplacement=pi)
Expand Down

0 comments on commit 86e2b8d

Please sign in to comment.