Created
April 17, 2015 18:48
-
-
Save absimas/56d6ec506212344a1d6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func didBeginContact(contact: SKPhysicsContact) { | |
if let bodyA = contact.bodyA as? Contactable { | |
bodyA.didContact() | |
} | |
if let bodyB = contact.bodyB as? Contactable { | |
bodyB.didContact() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment