Chapter 1: No turret property

There’s no turret property of the instance type tankAnchor but cannon instead!

6 Likes

Thanks, this was helpful.

Came here to post this. Thank you @justinlearnios! Correct code as follows:

tankAnchor!.cannon?.setParent(tankAnchor!.tank, preservingWorldTransform: true)

2 Likes

Ran across this just now and got the correct name in Reality Composer by selecting the turret and using the name in the properties.
image