change collision matrix run-time

how to change layer based collision matrix run-time?

thanks!

These methods described in the docs.

3 Likes