Edit: Most of my problems come from attempting to implement as I read, which this book is really not designed for. Am I right?
You can ignore the following or use your own discretion :)
In 2.9 Gravitational Attraction we have a variable for gravity, G. But in our Attractor class it is not delcared until later on by the end. At the end there is a complete code example of the Attractor class that does have it.
When we first create the Attractor class, add float G; under PVector location;
Quickest way to find the section is by Ctrl F for "tying mass to size"
Edit: Most of my problems come from attempting to implement as I read, which this book is really not designed for. Am I right?
In 2.9 Gravitational Attraction we have a variable for gravity, G. But in our Attractor class it is not delcared until later on by the end. At the end there is a complete code example of the Attractor class that does have it.
When we first create the Attractor class, add float G; under PVector location;
Quickest way to find the section is by Ctrl F for "tying mass to size"
Thanks, Alan.