Rishi
Rishi

Reputation: 419

How can I make a physics body which you can put another physics body through

I want to make a SKPhysicsBody in swift which allows another physics body to go through it without being affected. I cannot remove the physics body because I need the gravity. Any help is appreciated.

Upvotes: 0

Views: 348

Answers (1)

George Hanna
George Hanna

Reputation: 392

"Physics bodies with the same collisionBitMask value will "pass-through" each other.".

This should answer your question.

Upvotes: 1

Related Questions