Closed tjunnone closed 8 years ago
Under Figure 2.5 is the following code:
float speed = v.mag(); float dragMagnitude = c * speed * speed; PVector drag = velocity.get();
The first line should read "float speed = velocity.mag();" in order to be consistent with the last line of the above quoted code. This also makes it consistent with the code repeated in Example 2.5.
Fixed, thank you!
Under Figure 2.5 is the following code:
float speed = v.mag(); float dragMagnitude = c * speed * speed; PVector drag = velocity.get();
The first line should read "float speed = velocity.mag();" in order to be consistent with the last line of the above quoted code. This also makes it consistent with the code repeated in Example 2.5.