I have this code which applies force to the bullet node and make it move towards the enemy. This case the rocket is always faces upwards. My question is how can i rotate this bullet to face to the direction where the node is head.
let asd=SKSpriteNode(imageNamed: "nuke")
asd.zPosition=3
asd.setScale(0.1)
asd.position=CGPoint(x: self.size.width*0.945, y: self.size.height*0.48)
asd.physicsBody=SKPhysicsBody(rectangleOf: asd.size)
asd.physicsBody?.affectedByGravity=true
asd.physicsBody?.isDynamic=true
self.addChild(asd)
let scale=SKAction.scale(to: 0.4, duration: 0.5)
asd.physicsBody?.applyForce(CGVector(dx: -63, dy: 130))
let wait=SKAction.wait(forDuration: 10)
let rem=SKAction.removeFromParent()
let seq=SKAction.sequence([scale,wait,rem])
asd.run(seq)
}