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 ).
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?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.