Жест мультитач в Sprite Kit

Я работаю в Swift с Sprite-Kit, используя XCode 6, и у меня много разных узлов, но на данный момент мне удается обнаружить только один палец и одновременно перемещать один узел. Я хочу знать, как мне удалось обнаружить несколько пальцев, чтобы перемещать несколько узлов одновременно. Мой фактический код:

var location = CGFloat() // finger position
var actualNode = -1 // node touched by the finger, -1 means no node touched

override func touchesBegan(touches: NSSet, withEvent event: UIEvent) // when a finger touch the screen
{
    for touch: AnyObject in touches
    {
        location = touch.locationInNode(self) // we detect the finger position
    } 

    for var index = 0; index < colorNode.count; index++
    {
        if nodeAtPoint(location) == colorNode[index].node
        {
            actualNode = index // the number of the node touched by the finger
        }
    }
}

override func touchesMoved(touches: NSSet, withEvent event: UIEvent) // when a finger move
{
    for touch: AnyObject in touches
    {
        location = touch.locationInNode(self) // we detect the finger position
    }

    if actualNode != -1 // if a node is touched
    {
        colorNode[actualNode].position = location // we move this node to the finger
    }
}
override func touchesEnded(touches: NSSet, withEvent event: UIEvent) // when a finger don't touch the screen anymore
{        
    actualNode = -1 // there is no node touched
}

Как видите, у меня есть толькоposition моего первого пальца, но как я могу определить положение нескольких пальцев и назначить каждый палец узлу, которого касается палец?

Ответы на вопрос(1)

Ваш ответ на вопрос