# Errata for 3D iOS Games by Tutorials v1.1

**URL:** <https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581>\
**Category:** 3D iOS Games by Tutorials\
**Created:** [March 14, 2016, 11:34am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581 "2016-03-14T11:34:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwenderlich](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rwenderlich/32/108604_2.png) [@rwenderlich](https://forums.kodeco.com/u/rwenderlich)\
**Post date:** [March 14, 2016, 11:34am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/1 "2016-03-14T11:34:14Z")

</div>

This topic is for bugs, typos, and other mistakes in 3D iOS Games by Tutorials v1.1.

---

<div class="post-metadata">

**Author:** ![rwenderlich](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rwenderlich/32/108604_2.png) [@rwenderlich](https://forums.kodeco.com/u/rwenderlich)\
**Post date:** [March 21, 2016, 5:40pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/2 "2016-03-21T17:40:57Z")

</div>

Note to anyone wondering - version 1.1 is compatible with Xcode 7.3. If you are still using Xcode 7.2, you may wish to download the old Xcode 7.2 version of the book (version 1.0), which is available on your “My Loot” page. Hope this helps!

---

<div class="post-metadata">

**Author:** ![frosty1000](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/frosty1000/32/103451_2.png) [@frosty1000](https://forums.kodeco.com/u/frosty1000)\
**Post date:** [March 22, 2016, 4:36am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/3 "2016-03-22T04:36:12Z")

</div>

I downloaded the 1.1 version, and it appears to be missing some of the assets for the games. For GeometryFighter 01-scenes, I don’t see any ship.scn. Other projects seem ok.

---

<div class="post-metadata">

**Author:** ![frosty1000](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/frosty1000/32/103451_2.png) [@frosty1000](https://forums.kodeco.com/u/frosty1000)\
**Post date:** [March 22, 2016, 5:20am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/4 "2016-03-22T05:20:21Z")

</div>

Hey, Ray. Love your site and stuff by the way. Anyway, it’s super easy to add Collada files to a SCNScene. You can create Collada with Cheetah 3D, and spit out a dae file, and then the code is just this:  
func setupScene() {  
let scene = SCNScene(named: “YourFileFromCheetah3D.dae”)!  
scnView.scene = scene  
scnView.allowsCameraControl = true;  
scnView.autoenablesDefaultLighting = true;  
scnView.backgroundColor = UIColor.blackColor()  
}  
You should really put this in your Book since Cheetah 3D will create way more complex 3D then Xcode ever could. I can send you one if you want.

---

<div class="post-metadata">

**Author:** ![narrativium](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/narrativium/32/110937_2.png) [@narrativium](https://forums.kodeco.com/u/narrativium)\
**Post date:** [March 22, 2016, 10:17am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/5 "2016-03-22T10:17:50Z")

</div>

‘ship.scn’ isn’t an RW-provided asset in Chapter 1; it’s an Apple-provided asset in the basic SceneKit project which you’ll be deleting shortly to make room for your own stuff.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [March 22, 2016, 1:56pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/6 "2016-03-22T13:56:31Z")

</div>

There are two small slip of the pen mistakes in the Introduction chapter on page 20 in the Book source code and forums section:

1. “other required resources that included as well” should be “other required resources that are included as well”.
2. “making games with SpriteKit” should be “making games with SceneKit”.

---

<div class="post-metadata">

**Author:** ![chrononinja](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/chrononinja/32/10849_2.png) [@chrononinja](https://forums.kodeco.com/u/chrononinja)\
**Post date:** [March 22, 2016, 11:03pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/7 "2016-03-22T23:03:40Z")

</div>

Error for me on page 58 of PDF, concerning randomX and Y definitions.

Type Float has no member random. Running Version 7.2.1 (7C1002) of XCode.

---

<div class="post-metadata">

**Author:** ![chrononinja](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/chrononinja/32/10849_2.png) [@chrononinja](https://forums.kodeco.com/u/chrononinja)\
**Post date:** [March 22, 2016, 11:17pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/8 "2016-03-22T23:17:47Z")

</div>

Never mind, I neglected to see all the helper functions. I think I read the part about game utils and walked away, then when I returned I had forgotten to copy them over. I see where the method is defined now. Thanks.

---

<div class="post-metadata">

**Author:** ![ivan\_duran](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ivan_duran/32/74672_2.png) [@ivan\_duran](https://forums.kodeco.com/u/ivan_duran)\
**Post date:** [March 23, 2016, 8:36pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/9 "2016-03-23T20:36:49Z")

</div>

PDF page 230: “Make sure to position it at (x: 0, y: 2, z: 0)”, but “y” value must be -2.

---

<div class="post-metadata">

**Author:** ![maximilian](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/maximilian/32/110937_2.png) [@maximilian](https://forums.kodeco.com/u/maximilian)\
**Post date:** [March 23, 2016, 9:36pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/10 "2016-03-23T21:36:40Z")

</div>

For the Breaker Game (up to Chapter 10) sometimes part of the paddle disappears during gameplay, and the top right barrier.

Also for page 175 I find this formula works better for touch controls:  
`paddleNode.position.x = paddleX + (Float(location.x - touchX) * 0.06)`

---

<div class="post-metadata">

**Author:** ![narrativium](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/narrativium/32/110937_2.png) [@narrativium](https://forums.kodeco.com/u/narrativium)\
**Post date:** [March 24, 2016, 12:15am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/11 "2016-03-24T00:15:03Z")

</div>

PDF p118, first line: ‘set the Euler angles’ not Euler angels…

---

<div class="post-metadata">

**Author:** ![maximilian](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/maximilian/32/110937_2.png) [@maximilian](https://forums.kodeco.com/u/maximilian)\
**Post date:** [March 24, 2016, 4:11am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/12 "2016-03-24T04:11:14Z")

</div>

On page 207 in the last sentence before the bottom image, it says to name the reference node `ball` but when trying to complete chapter 14 on page 250. When getting a reference to the ball programmatically it will find the reference node ball, not the actual ball so none of the contact delegate code is called. I figured this out by looking at the completed challenge which left it with the default name.

---

<div class="post-metadata">

**Author:** ![maximilian](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/maximilian/32/110937_2.png) [@maximilian](https://forums.kodeco.com/u/maximilian)\
**Post date:** [March 24, 2016, 4:19am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/13 "2016-03-24T04:19:20Z")

</div>

1. On page 254, in the first sentence under “Getting Started” the word “load” is misspelled as “laid”
2. On page 275, in the second sentence below the first image it says “well almost nothing changed, accept…” should be except

---

<div class="post-metadata">

**Author:** ![ohartnet](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ohartnet/32/44302_2.png) [@ohartnet](https://forums.kodeco.com/u/ohartnet)\
**Post date:** [March 24, 2016, 5:40pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/14 "2016-03-24T17:40:34Z")

</div>

P. 209, Obj\_pillar1x3 says to set size to (x:1, y:3, z:1), but texture could not be made to look like the picture on that page with 10 squares tall by 2 squares wide. Pulling up the finished project in the example file showed that this object’s size is (x: 0.6, y: 3, z: 0.6). Setting it to this size did the trick.

---

<div class="post-metadata">

**Author:** ![ivan\_duran](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ivan_duran/32/74672_2.png) [@ivan\_duran](https://forums.kodeco.com/u/ivan_duran)\
**Post date:** [March 26, 2016, 1:15pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/15 "2016-03-26T13:15:05Z")

</div>

You are right. Page 207 are wrong and node “obj\_ball reference” can’t be renamed as “ball”.

---

<div class="post-metadata">

**Author:** ![vicberggren](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vicberggren/32/11771_2.png) [@vicberggren](https://forums.kodeco.com/u/vicberggren)\
**Post date:** [March 26, 2016, 4:43pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/16 "2016-03-26T16:43:54Z")

</div>

Edited: I didn’t see chrononinja comment on this, I will try that to see if it helps. I know I copied over GameUtils.

Hi, in Chapter 3, _Physics_, there are calls to Float.random when applying forces to randomX and randomY which produces an error "Type ‘Float’ has no member ‘random’. I checked the Float Documentation ([Apple Developer Documentation](https://developer.apple.com/library/ios/documentation/Swift/Reference/Swift_Float_Structure/index.html#//apple_ref/doc/uid/TP40015923-CH1-DontLinkElementID_7)) and confirmed. Maybe I am using an incorrect version of Swift, my Xcode is 7.2.

---

<div class="post-metadata">

**Author:** ![kvebeeck](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kvebeeck/32/81494_2.png) [@kvebeeck](https://forums.kodeco.com/u/kvebeeck)\
**Post date:** [March 28, 2016, 5:47am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/17 "2016-03-28T05:47:23Z")

</div>

not really a typo, but in the book it says to make the shadow for the the follow light to 0.5  
but the book shows pictures of a 1.0 shadow, and the demo video shows the 1.0 shadows to  
this might confuse new scene kit developer  
so a note to new scene kit developers, if your shadows look less black, and you don’t like this, set the follow\_light shadow back to 1.0 and its a lot darker

---

<div class="post-metadata">

**Author:** ![nmodin](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nmodin/32/79544_2.png) [@nmodin](https://forums.kodeco.com/u/nmodin)\
**Post date:** [March 29, 2016, 9:27pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/18 "2016-03-29T21:27:42Z")

</div>

An extra “some” on Page 52:

> “Before you dive into integrating physics in your game, you’ll first need to add **_some some_** game utilities to your project.”

---

<div class="post-metadata">

**Author:** ![nmodin](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nmodin/32/79544_2.png) [@nmodin](https://forums.kodeco.com/u/nmodin)\
**Post date:** [March 29, 2016, 9:30pm UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/19 "2016-03-29T21:30:13Z")

</div>

Link not actual link on page 50:

> Use Apple’s official **Scene Kit documentation** as a guide to the various geometric shapes.

---

<div class="post-metadata">

**Author:** ![sanjib](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sanjib/32/10453_2.png) [@sanjib](https://forums.kodeco.com/u/sanjib)\
**Post date:** [March 30, 2016, 5:09am UTC](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581/20 "2016-03-30T05:09:22Z")

</div>

Typo: Page 199, 1st paragraph (Chapter 12: Reference Nodes)

Current text:  
Image for a moment you’ve created an epic monster …  
^^^^^

Should be:  
Imagine for a moment you’ve created an epic monster …

[Next page](https://forums.kodeco.com/t/errata-for-3d-ios-games-by-tutorials-v1-1/9581.md?page=2)
