Menu

#82 bug in dMassSetCylinder

general
closed
nobody
general (12)
5
2014-02-04
2012-03-22
Lin Meng
No

I used dMassSetCylinder to create a cylinder. But when I change the direction value (1=x, 2=y,3=z), the axis of cylinder is not changed ( axis is alway z ).

Discussion

  • Daniel K. O.

    Daniel K. O. - 2012-04-06

    The code dMassSetCylinderTotal adjust the correct part of the inertia matrix based on the axis. dMassSetCylinder just forwards the direction parameter. Either you mean that it's failing to set the inertia matrix according to the direction, which contradicts the code, or you mean something else entirely. Could you please clarify what exactly is happening and what were you expecting?

     
  • Daniel K. O.

    Daniel K. O. - 2014-02-04
    • status: open --> closed
    • Group: --> general
     

Log in to post a comment.