I get the error for the line of code here:
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
hero.physicsBody?.applyImpulse(CGVector(dx: 0, dy: 300))
}
I'm quite new to code and I am having trouble working out why I am getting this error.