1. ODE Devs
  2. ODE
  3. ODE
  4. Issues
Issue #25 on hold

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

Anonymous created an issue

By default, the cylinder is created in-line with the Z axis. There is no way to change this, because the second argument of <mass>.setCylinderTotal (direction) has no effect

Comments (2)

  1. Daniel K. O.

    Works for me:

    >>> 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
    
  2. Log in to comment