I am trying to get the size of a node on screen. This is the code:
var v1 = SCNVector3(x:0, y:0, z:0)
var v2 = SCNVector3(x:0, y:0, z:0)
carNode.getBoundingBoxMin(&v1, max: &v2)
print(v2)
carNode.scale = SCNVector3(0.9, 1.2, 0.5)
//carNode.transform = SCNMatrix4MakeScale(0.9, 1.2, 0.5)
carNode.getBoundingBoxMin(&v1, max: &v2)
print(v2)
However the values returned by getBoundingBoxMin before and after are identical, as if the scaling had not been taken in consideration. Why is that? I need this information to set the correct size for the physics body on the node for collision detection and the determine if other nodes are within some range from the object.