|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Runtime handle for a registered collision component. More...
#include <CollisionProfile.h>
Public Member Functions | |
| bool | isValid () const |
| Checks whether this handle contains a collision slot and generation. | |
Public Attributes | |
| std::uint32_t | id = 0 |
| One-based collision slot index, or 0 for an invalid handle. | |
| std::uint32_t | generation = 0 |
| Slot generation used to reject stale handles. | |
Runtime handle for a registered collision component.
The generation field rejects stale handles after a collision slot is unregistered and reused. The default handle {0, 0} is invalid.
Definition at line 111 of file CollisionProfile.h.
|
inlinenodiscard |
Checks whether this handle contains a collision slot and generation.
Definition at line 120 of file CollisionProfile.h.
References generation.
| std::uint32_t Engine::Physics::CollisionHandle::generation = 0 |
Slot generation used to reject stale handles.
Definition at line 114 of file CollisionProfile.h.
Referenced by isValid().
| std::uint32_t Engine::Physics::CollisionHandle::id = 0 |
One-based collision slot index, or 0 for an invalid handle.
Definition at line 113 of file CollisionProfile.h.