I have two SKNode
objects. Their positions change when they collide.
How can I prevent that? At the same time, I still want to be able to respond to them contacting via - (void)didBeginContact
;
I tried setting both their mass
property to 0.0f
but that didn't work.
You can achieve that by setting category, collision and contact bit masks.
In above case bodyA and bodyB cannot collide, but you will receive didBeginContact once they are in contact.