A 64-bit mask, effectively 64 flags. The default enumerator will iterate all the bits that are set (1).
Property | Description |
---|---|
All | All 64 bits set (1) in the PhysicsMask. |
None | No bits set in the PhysicsMask, effectively zero. |
One | Bit #0 set (1) in the PhysicsMask. The remaining bits are reset (0). |
Property | Description |
---|---|
bitMask | A 64-bit mask, effectively 64 flags. |
Constructor | Description |
---|---|
PhysicsMask | Create a PhysicsMask by specifying multiple bits to set (1). |
Method | Description |
---|---|
AreBitsSet | Checks if the provided PhysicsMask set bits are also set in this PhysicsMask. |
IsBitSet | Is the specified bit set. |
ResetBit | Reset (0) the specified bit. |
SetBit | Set (1) the specified bit. |
ToLayerMask | Convert the lower 32-bits of the 64-bit mask to the 32-bit UnityEngine.LayerMask. A UnityEngine.LayerMask is only 32-bits wide so the upper 32-bits of the PhysicsMask will be ignored. |