Skip to content

Commit 319ef1a

Browse files
committed
Fix scene regarding PR on FixedWeakConstraints
1 parent 441731d commit 319ef1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/springForceField.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def createScene(root):
2929
ball_0 = add_ball(root, 'ball_0', (-2, 0, 0), surface_loader)
3030
ball_1 = add_ball(root, 'ball_1', (2, 0, 0), surface_loader)
3131

32-
ball_0.addObject('RestShapeSpringsForceField', name='rest_spring', stiffness=1e1, angularStiffness=1e03)
32+
ball_0.addObject('FixedWeakConstraint', name='rest_spring', stiffness=1e1, angularStiffness=1e03, fixAll=True)
3333
springs = root.addObject('SpringForceField',
3434
object1=ball_0.dofs.getLinkPath(), object2=ball_1.dofs.getLinkPath(),
3535
indices1=[0], indices2=[0],

0 commit comments

Comments
 (0)