Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Body Collision Mask

$
0
0
Hi,

I've seen that is TSCollider.CreateBody() the body instance is flagged with:

body.CollidesWith = Physics2D.Category.All;

Why does this field is not used? I suppose that using a mask like that could be more efficient that using LayerCollisionMatrix.

Thanks,

Devis

Viewing all articles
Browse latest Browse all 15755

Trending Articles