Skip to content

Commit

Permalink
[examples] step1.py define a mass value
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Apr 8, 2024
1 parent 490743e commit 66436de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/tutorials/Tripod/details/step1.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def createScene(rootNode):
position=scene.Modelling.loader.position.getLinkPath(),
showObject=True, showObjectScale=5.0,
rotation=[90.0, 0.0, 0.0])
elasticbody.addObject('UniformMass')
elasticbody.addObject('UniformMass', totalMass='1.0')

# Visual object
visual = scene.Modelling.addChild('VisualModel')
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/Tripod/myproject/step1.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def createScene(rootNode):
position=scene.Modelling.loader.position.getLinkPath(),
showObject=True, showObjectScale=5.0,
rotation=[90.0, 0.0, 0.0])
elasticbody.addObject('UniformMass')
elasticbody.addObject('UniformMass', totalMass='1.0')

# Visual object
visual = scene.Modelling.addChild('VisualModel')
Expand Down

0 comments on commit 66436de

Please sign in to comment.