For example I have two SCNNode
s with SCNBox
geometry positioned one after another increasing x
position property:
SCNBox(width: 0, height: 0, length: 0.02, chamferRadius: 0)
Then I want to rotate the first one using rotation
property with SCNVector4
, but when rotation happens I want my second node to follow the first one and change its position according rotation of the first one.
I found this solution on the web and tried to print node's position
, worldPosition
and presentation.position
but they are all the same value.
Can someone help me to find out how can I obtain node's position after rotation?