Deadline: July 6th (Thu) at 15:00pm
If you have not done the task00, do it first to set up the C++ graphics development environment.
Follow this document to submit the assignment, In a nutshell, before doing the assignment,
- install
eigen
library following this document - make sure you synchronized the
main
branch of your local repository to that of remote repository. - make sure you created branch
task10
frommain
branch. - make sure you are currently in the
task10
branch (usegit branch -a
command).
Now you are ready to go!
Run the code. Take a screenshot image.
Save the screenshot image overwriting task10/problem1.png
This code simulates the motion of rigid body without any external force or translational movement.
Add some code around line 108
to update the rotation matrix and the angular velocity.
The energy and the angular momentum should preserve for some extent.
Wait until the program stops after simulating the motion until time=200
. Save the screenshot image overwriting task10/problem2.png
After modifying the code, push the code and submit a pull request.
- Do not submit multiple pull requests. Only the first pull request is graded
- Do not close the pull request by yourself. The instructor will close the pull request
- If you mistakenly merge the pull request, it's OK, but be careful not to merge next time.
The t-rex.obj
model was created by Thingiverse user HoShey, and is licensed under cc (https://www.thingiverse.com/thing:3152998).