diff --git a/examples/component/constraint/JointConstraint/JointConstraint.py b/examples/component/constraint/JointConstraint/JointConstraint.py index 0ed11ec6..10ad8d7d 100644 --- a/examples/component/constraint/JointConstraint/JointConstraint.py +++ b/examples/component/constraint/JointConstraint/JointConstraint.py @@ -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)