Skip to content

In Python: <mass>.setCylinderTotal. Direction setting has no effect. #25

Description

@oleh-derevenko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions