Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
summer_2019:making_objects_move [2019/07/31 22:32] wellerd |
summer_2019:making_objects_move [2019/07/31 22:59] (current) wellerd |
||
---|---|---|---|
Line 27: | Line 27: | ||
* **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''. |