I am having an issue making a sprite ignore the effects of a SKPhysicsBody placed as a ground platform in an iOS project. I have only one sprite that I would like to "follow the rules" of the SKPhysicsBody and for all other sprites to "pass through". I have searched for a way to do this, but to no avail. Any suggestions?
Asked
Active
Viewed 191 times
0
-
Please add some code related to the Sprite node which you want to 'follow the rules' as well as for the ground platform. – ZeMoon Mar 23 '14 at 06:37
-
1You need to set the collisionBitMasks properly in order to achieve this. – ZeMoon Mar 23 '14 at 06:38
1 Answers
1
for any physics body that you want to pass through set its collisionBitMask to 0 that means that it won't collide with anything, make sure you don't set the collisionBitMask of the ground to the type of sprite you want them to pass through,

rockstarr
- 296
- 1
- 4