A
A
Alexey Mistin2015-08-30 17:38:14
Programming
Alexey Mistin, 2015-08-30 17:38:14

How to overlay one physics body on top of another in SpriteKit Swift?

Hello.
There is one physical body (SKPhysicsBody) in SpriteKit. I need to have another physical body inside it (on it, a layer above for example).
How can I do it?
It's just that if their positions are set the same, then they disperse immediately.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
imJustik, 2015-09-21
@imJustik

property physicsBody?.collisionBitMask = 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question