Holistic Game Development 2nd Ed Errata
Preface
The Companion Website (page xiii)
Website typo. It should be https://holistic3d.com (this site)
Thank you Howard W.
Chapter 1
Fig 1.38 Example 3D model files (page 67)
File is named ping.blend, it should be pig.blend
File is named pingUV.png it should be pig.png
Thank you Howard W.
Unity Hands On
Operators
Listing 1.2 (page 43)
Operators should be “=” not “-“.
transform.localScale.x = transform.localScale.x + growthRate;
transform.localScale.y = transform.localScale.y + growthRate;
transform.localScale.z = transform.localScale.z + growthRate;
Thank you John H. and Howard W.
Chapter 4
Listing 4.18 (pg 212-213)
Formatting error and duplicate if statement if(Input.GetKey(“space”))
The complete aim.js file:
#pragma strict var cannonball:GameObject; function Update () { if (Input.GetKey ("up")) //if up key is pressed { //rotate upward around the side axis this.transform.RotateAround (this.transform.position, this.transform.right, 20 * Time.deltaTime); } if (Input.GetKey ("down")) { //rotate downward around the side axis this.transform.RotateAround (this.transform.position, this.transform.right, -20 * Time.deltaTime); } if (Input.GetKey ("right")) { this.transform.RotateAround (this.transform.position, this.transform.forward, -20 * Time.deltaTime); } if (Input.GetKey ("left")) { this.transform.RotateAround (this.transform.position, this.transform.forward, 20 * Time.deltaTime); } if(Input.GetKey("space")) { //each loop the space is down increase the strength (Camera.main.GetComponent("strengthMeter") as strengthMeter).shotStrength = (Camera.main.GetComponent("strengthMeter") as strengthMeter).shotStrength + 0.01; } if(Input.GetKeyUp ("space")) { var cannonball:GameObject = Instantiate(cannonball,this.transform.position, this.transform.rotation); //use built up strength to influence the shot var strength = (Camera.main.GetComponent("strengthMeter") as strengthMeter).shotStrength * 10000; cannonball.GetComponent.().AddForce(this.transform.up * strength); //set strength back to 0 after a shot (Camera.main.GetComponent("strengthMeter") as strengthMeter).shotStrength = 0; } }
Thank you Howard W.
Unity Hands On
Avoiding and Collecting
Step 5. (Page 219)
Typo. 50 points not 20 points.
“Play. When the character runs over the chest, its health will improve by 50 points….”
Thank you Howard W.