We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 441731d commit 319ef1aCopy full SHA for 319ef1a
1 file changed
examples/springForceField.py
@@ -29,7 +29,7 @@ def createScene(root):
29
ball_0 = add_ball(root, 'ball_0', (-2, 0, 0), surface_loader)
30
ball_1 = add_ball(root, 'ball_1', (2, 0, 0), surface_loader)
31
32
- ball_0.addObject('RestShapeSpringsForceField', name='rest_spring', stiffness=1e1, angularStiffness=1e03)
+ ball_0.addObject('FixedWeakConstraint', name='rest_spring', stiffness=1e1, angularStiffness=1e03, fixAll=True)
33
springs = root.addObject('SpringForceField',
34
object1=ball_0.dofs.getLinkPath(), object2=ball_1.dofs.getLinkPath(),
35
indices1=[0], indices2=[0],
0 commit comments