Collission between two copies of an active only when both are on the same layer
Hi!
Iīm working on a pinball game using the physics objects and itīs going great so far but I run into this problem I canīt figure out:
I am using 4 layers for ramps and such and when there are several balls on the playfield I want them to collide with each other only if they are on the same layer. When I check for a collission between two copies of the ball active, how can I check that they are both on the same layer?
I was trying:
If collission between "ball" and "ball"
Layer of "ball" = Layer of "ball" > Stop "ball"
But of course it does not work. It stops both balls even if they are in different layers.
Any ideas?
Thank you very much!