解决方法
如何将其旋转小于360°?由于你的标题是“无限”,它应该可以正常工作,并且一遍又一遍地重复动画将会提升360°甚至更高.
另外,你可以看看Apple默认的SceneKit项目,它对我很有用:
[cameraNode runAction:[SCNAction repeatActionForever:[SCNAction rotateByX:0 y:.5 z:0 duration:1]]];
或者,对于OSX:
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"rotation"]; animation.tovalue = [NSValue valueWithSCNVector4:SCNVector4Make(0,1,M_PI*2)]; animation.duration = 15; animation.repeatCount = MAXFLOAT; //repeat forever [YOURNODE addAnimation:animation forKey:nil];