Skip to content

Latest commit

 

History

History
59 lines (31 loc) · 1.68 KB

README.md

File metadata and controls

59 lines (31 loc) · 1.68 KB

Task02: Linear Momentum Conservation

preview

Deadline: March 4th (Thu) at 15:00pm


Before Doing Assignment

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 task02 from main branch.
  • make sure you are currently in the task02 branch (use git branch -a command).

Now you are ready to go!


Problem 1

  1. Build the code using cmake
  2. Run the code
  3. Take a screenshot image (looks like image at the top)
  4. Save the screenshot image overwriting task02/problem1.png

problem1

You will see many particles bump into a ball.

Problem 2

Let's simulate Brownian motion.

Follow the instruction at line #49 in main.cpp to modify the code to simulate the collision between the ball and a particle.

After running the program for a while, save the screenshot image overwriting task02/problem2.png

problem2

After Doing the Assignment

After modifying the code, push the code and submit a pull request.

Notes

  • 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.