physicsBody
The physics body associated with the node.
Declaration
var physicsBody: SKPhysicsBody? { get set }Mentioned in
Discussion
The default value is nil, which indicates that the node does not participate in the physics simulation at all. If a physics body is provided, when the scene’s physics are simulated, the physics body updates the node’s position and rotates the node.