Rotate SCNNode relative local coordinates

后端 未结 2 636
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 19:25

I\'m trying to rotate a node by SCNAction, but it rotates relative to parent’s coordinate space. Is it possible to rotate a node relative local\'s coordinate sy

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-19 19:55

    Have you tried:

    [node runAction:[SCNAction rotateByX:0 y:1 z:0 duration:5.0]]; //Rotates the node along the y axis for 5 seconds.
    

提交回复
热议问题