By default, the cylinder is created in-line with the Z axis. There is no way to change this, because the second argument of .setCylinderTotal (direction) has no effect
[Issue created by : 2014-03-05]
[Last updated on bitbucket: 2020-04-25]
[Comment created by oleh-derevenko: 2020-04-25]
Removing version: 0.13 (automated comment)
[Comment created by danielko: 2014-03-06]
Works for me:
#!python
>>> a = ode.Mass()
>>> a.setCylinderTotal(1, 1, 5, 2)
>>> print a
Mass=1.0
Cg=(0.0, 0.0, 0.0)
I11=12.5 I22=6.58333349228 I33=6.58333349228
I12=0.0 I13=0.0 I23=0.0
>>> a.setCylinderTotal(1, 2, 5, 2)
>>> print a
Mass=1.0
Cg=(0.0, 0.0, 0.0)
I11=6.58333349228 I22=12.5 I33=6.58333349228
I12=0.0 I13=0.0 I23=0.0
>>> a.setCylinderTotal(1, 3, 5, 2)
>>> print a
Mass=1.0
Cg=(0.0, 0.0, 0.0)
I11=6.58333349228 I22=6.58333349228 I33=12.5
I12=0.0 I13=0.0 I23=0.0
By default, the cylinder is created in-line with the Z axis. There is no way to change this, because the second argument of .setCylinderTotal (direction) has no effect
[Issue created by : 2014-03-05]
[Last updated on bitbucket: 2020-04-25]
[Comment created by oleh-derevenko: 2020-04-25]
Removing version: 0.13 (automated comment)
[Comment created by danielko: 2014-03-06]
Works for me: