-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attitude of Mass of Cylinder and Capsule Wrong #56
Comments
Perhaps you are right? I would have to take a closer look. Do you have On 10/20/2016 10:15 AM, Basil Huber wrote:
Dr. Joshua E. Auerbach |
I'll upload one tomorrow |
I uploaded a demo of the bug on the following branch: To execute, just run ./inertia-test; In the test case, a torque is applied to a cylinder along different axis. The cylinder is expected to rotate fastest around its axis of symmetry (z) and slow around the other axis. However, it rotates fastest around the x axis, indicating that the moment of inertia has its axis of symmetry along the x axis. |
In the functions Model::addCylinder(...) and Model::addCapsule take the direction of the axis of the cylinder. We pass this direction to dMassSetCylinderTotal. We then set the cylinder's attitude depending on the orientation. This means we first set the orientation of the mass correct and then turned it to be wrong.
The text was updated successfully, but these errors were encountered: