I'm working on a game for tvOS and the below works for iOS :
func moveToward(target: CGPoint)
{
let targetVector = (target - position).normalized() * 1300.0
physicsBody?.velocity = CGVector(point: targetVector)
}Does anyone have any ideas on how I can solve this issue ?
Basically it's throwing out the error on the let targetVector = ..... line.
Any and all help is surely appreciated.
Thanks