unity storage Physics / Physics2DProjectSettings in the LayerCollisionMatrix

Open the project folder /ProjectSettings/Physics2DSettings.asset can see the following:

m_LayerCollisionMatrix: fefbff3ffffbff3ffffbff3ffffffffffffbff3ffffbff3ffffffffffffffffffffbff3ffffbff3fc8f8ff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fffffff3fc8000000c8000000

String length 256 characters, each character represents a 8 int, int herein represent numerical calculation right & unity layer such as:

layer&mask>0//表示碰撞

represents unity layer of Layer specified value, mask is a m_LayerCollisionMatrix int value.

Read an int

fefbff3f
//表示int:3f ff fb fe 

Guess you like

Origin www.cnblogs.com/kingBook/p/12025059.html