[Solved] Swift 4 Change Physics Gravity
[ad_1] CGVectorMake has been deprecated. Use the following syntax to initialise a CGVector: self.physicsWorld.gravity = CGVector(dx: 0, dy: 0) Or, since you want a vector with both components 0: self.physicsWorld.gravity = CGVector.zero [ad_2] solved Swift 4 Change Physics Gravity