Vixen
02b45cc4
csharp
public readonly record struct PhysicsLayer

Which layer a body is on. Layers decide what may collide with what.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (3)

  • public byte Index

    The layer number, from 0 to MaxLayers − 1.

  • public static PhysicsLayer Default

    The layer everything is on until it is put somewhere else.

  • public PhysicsLayerMask AsMask

    This layer on its own, as a mask.

Methods (2)

  • public PhysicsLayer(byte Index)

    Which layer a body is on. Layers decide what may collide with what.

  • public override string ToString()

    Renders the layer number.

Used by (18)

  • BodyDescriptionVixen.Physics
  • BodySlotVixen.Physics
  • CharacterControllerVixen.Physics
  • CharacterControllerSettingsVixen.Physics
  • CharacterMovementVixen.Physics
  • ColliderVixen.Physics
  • PhysicsLayerMaskVixen.Physics
  • PhysicsLayerTestsVixen.Physics.Tests
  • PhysicsLayersVixen.Physics
  • PhysicsOcclusionTestsVixen.Audio.Physics.Tests
  • PhysicsQueryTestsVixen.Physics.Tests
  • PhysicsWorldVixen.Physics
  • PhysicsWorldTestsVixen.Physics.Tests
  • Vixen_Physics_Bodies_BodyDescriptionSerializerVixen.Physics
  • Vixen_Physics_Characters_CharacterControllerSettingsSerializerVixen.Physics
  • Vixen_Physics_Characters_CharacterMovementSerializerVixen.Physics
  • Vixen_Physics_Ecs_ColliderSerializerVixen.Physics
  • Vixen_Physics_PhysicsLayerSerializerVixen.Physics