mirror of
https://github.com/nature-of-code/noc-book-2
synced 2024-11-16 07:47:48 +01:00
Notion - Update docs
This commit is contained in:
parent
4dc200b8ee
commit
f9493ecc8b
1 changed files with 1 additions and 1 deletions
|
@ -915,7 +915,7 @@ position.add(velocity);</pre>
|
|||
<p>You might also notice that this example is another kind of random walker.<strong><em> </em></strong>A key distinction between what I’m doing here and the previous chapter’s examples, however, lies in <em>what</em> is being randomized. With the traditional random walker, I was directly manipulating the velocity, meaning each step was completely independent of the last. In Example 1.9, the acceleration (the rate of change of velocity) is being randomized, not the velocity itself. This makes the object’s motion dependent on its previous state: the velocity changes incrementally according to the random acceleration. The resulting movement of the object has a kind of continuity and fluidity that the original random walker lacked. The difference may seem subtle, but it fundamentally changes the way the object moves about the canvas.</p>
|
||||
<div data-type="exercise">
|
||||
<h3 id="exercise-16">Exercise 1.6</h3>
|
||||
<p>Referring back to Exercise 0.6, implement an acceleration calculated with Perlin noise.</p>
|
||||
<p>Referring back to Example 0.6, implement an acceleration calculated with Perlin noise.</p>
|
||||
</div>
|
||||
<h3 id="static-vs-nonstatic-methods">Static vs. Nonstatic Methods</h3>
|
||||
<div data-type="video-link" data-title="Static Functions" href="https://www.youtube.com/watch?v=YN8Q-QEmQ8Y&embeds_referring_euri=https://thecodingtrain.com/&embeds_referring_origin=https://thecodingtrain.com&source_ve_path=OTY3MTQ&feature=emb_imp_woyt"></div>
|
||||
|
|
Loading…
Reference in a new issue