2017-05-19 35 views

回答

0

SCNNode位置是SCNVector3

// Storing the position of myNode node into nodePosition variable 
SCNVector3 nodePosition = myNode.position; 

但是,如果有一個動畫或物理模擬參與打不更新節點的.position性能。

相反,你應該閱讀.presentationNode屬性的當前位置:

// Getting the current position of myNode 
// if an animation or physics simulation is in progress 
SCNVector3 nodePosition = myNode.presentationNode.position;