Sprite Kit: changing zRotation in DidBeginContact
问题 SKSpriteNode *_node; - (void)didBeginContact:(SKPhysicsContact *)contact { _node.alpha = 0.5; //this works _node.zRotation = 0.5; // this doesn't work } Any ideas why zRotation doesn't work? I tried doing NSLog and it gives the right zRotation but the screen is not showing. 回答1: Have a look at what the runloop looks like for SpriteKit. Nothing is drawn until after physics are simulated. So even though you are setting the zRotation manually it is probably overridden by the physicsBody and set