There’s no turret
property of the instance type tankAnchor
but cannon
instead!
5 Likes
Thanks, this was helpful.
Came here to post this. Thank you @justinlearnios! Correct code as follows:
tankAnchor!.cannon?.setParent(tankAnchor!.tank, preservingWorldTransform: true)
1 Like
Ran across this just now and got the correct name in Reality Composer by selecting the turret and using the name in the properties.