Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
summer_2019:making_objects_move [2019/07/31 22:31]
wellerd
summer_2019:making_objects_move [2019/07/31 22:59] (current)
wellerd
Line 25: Line 25:
   * **Line 10:** Edit the code to change the particle acceleration to -1 in the x-direction.   * **Line 10:** Edit the code to change the particle acceleration to -1 in the x-direction.
  
-  * **Line 30:** Add code to update the velocity of the particle based on its acceleration. Hint: Try to mimic line 27, but use “velocity” and “acceleration” instead of “pos” and “velocity”,​ respectively.+  * **Line 30:** Add code to update the velocity of the particle based on its acceleration. ​//Hint: Try to mimic line 27, but use “velocity” and “acceleration” instead of “pos” and “velocity”,​ respectively.//
  
-  * **Line 22:** Edit the code to get the particle to stop when its velocity is equal to 0. Hint: Make the while statement depend on particle.velocity.x+  * **Line 22:** Edit the code to get the particle to stop when its velocity is equal to 0. //Hint: Make the while statement depend on// ''​particle.velocity.x''​.
  • summer_2019/making_objects_move.1564612301.txt.gz
  • Last modified: 2019/07/31 22:31
  • by wellerd