The equivalent of this code in Swift:
startNode.scale = SCNVector3(1/100.0, 1/100.0, 1/100.0)
is:
[startNode setScale: SCNVector3Make(1/100.0, 1/100.0, 1/100.0)];
in Objective-C.
It seems strange that SCNVector3
should be replaced by SCNVector3Make
. Why is this?
Thanks!
You can use SCNVector3Make(x, y, z)
and SCNVector3(x, y, z)
in Swift.
The latter is, indeed, strange in semantics, but they are identical.