Engine → Physics → physics_layers.h
physics_layer_mask
| Type | Struct |
| Namespace | conjure::physics |
| Include File Path | engine/include/conjure/physics/physics_layers.h |
| Source File Path | engine/src/physics/physics_layers.cpp |
| API ↗ | Bodies, colliders and characters, Physics |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | bits | u32 | 0xFFFFFFFFu |
Functions
Public
includes
includes[[nodiscard]] constexpr bool includes(
u8 layer) const noexcept;True when the layer's bit is set (false for indices of 32 or more).
only
only[[nodiscard]] static constexpr physics_layer_mask only(
u8 layer) noexcept;Exactly one layer (indices of 32 or more yield the empty mask).
with
with[[nodiscard]] constexpr physics_layer_mask with(
u8 layer) const noexcept;This mask with the layer added.
without
without[[nodiscard]] constexpr physics_layer_mask without(
u8 layer) const noexcept;This mask with the layer removed.
Operator Overloads
Public
operator==
operator==[[nodiscard]] constexpr bool operator==(
const physics_layer_mask &) const noexcept = default;