-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HW # 14 #32
Comments
Take a look at Example 1.9 from The Nature of Code Chapter 1 which talks about randomness within acceleration vectors. Example 1.9: Motion 101 (velocity and random acceleration)
Because the random vector is a normalized one, we can try scaling it:
While this may seem like an obvious point, it’s crucial to understand that acceleration does not merely refer to the speeding up or slowing down of a moving object, but rather any change in velocity in either magnitude or direction. Acceleration is used to steer an object, and we’ll see this again and again in future chapters as we begin to program objects that make decisions about how to move about the screen. |
Take a look at the examples for help. |
Tab one
|
Tab two
|
Sorry mister Chase |
Try going through example 1.9 at this page: http://natureofcode.com/book/chapter-1-vectors/ |
Helico heli; void setup(){ } |
class Helico{ Helico(){ void display(){ } void update(){ velocity.add(acceleration); void edges(){
} |
In this homework we will get some more practice with vectors. Look back on your homework from week13 for help.
Please paste your code as a comment on this post
The text was updated successfully, but these errors were encountered: