Created
June 24, 2019 21:56
-
-
Save PedroFarina/473d261b5e9ee09acaab791e3200f886 to your computer and use it in GitHub Desktop.
Setting up some physicsBodies
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
//UInt32 é qualquer valor inteiro entre 0 e 4294967295 | |
if let pb = nodeGenerico.physicsBody{ | |
pb.categoryBitMask = UInt32 | |
pb.collisionBitMask = UInt32 | |
pb.contactBitMask = UInt32 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment