I would like to add a new superpower to my superhero in a spritekit game.
Once this superpower is enabled, he will be able to pass through any other SKPhysicsBody.
Setting the contactTestBitMask to 0x00000000 will only disable contact detection (didBeginContact:).
self.hero.physicsBody.contactTestBitMask = 0x00000000;
while setting dynamic to NO will let it pass through any SKPhysics body (but at the same time it will disable the gravitational force as well)
self.hero.physicsBody.dynamic = NO;
I want it to pass through the hero instead of just disabling the contact detection.
How to achieve this?