diff options
| author | Léo Lam <leo@leolam.fr> | 2022-12-18 18:36:02 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-12-18 18:58:23 +0100 |
| commit | 20be3a197a8296b0e3d7f07f87c2bc6d526aa203 (patch) | |
| tree | 43009d2f62f0a662590de7c8b02899d69819c979 /src/KingSystem/Physics/System/physClosestPointQuery.cpp | |
| parent | 30368facc0c1f0700f3c49806a20b95333048163 (diff) | |
ksys/phys: Clarify EntityCollisionMask structure and names
Diffstat (limited to 'src/KingSystem/Physics/System/physClosestPointQuery.cpp')
| -rw-r--r-- | src/KingSystem/Physics/System/physClosestPointQuery.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/Physics/System/physClosestPointQuery.cpp b/src/KingSystem/Physics/System/physClosestPointQuery.cpp index ab4b8ffd..736334c5 100644 --- a/src/KingSystem/Physics/System/physClosestPointQuery.cpp +++ b/src/KingSystem/Physics/System/physClosestPointQuery.cpp @@ -28,9 +28,9 @@ bool ClosestPointQuery::isSuccess() const { void ClosestPointQuery::setLayerMasksAndBodyCollisionFilterInfo(const LayerMaskBuilder& builder) { EntityCollisionMask mask; - mask.data.query_custom_receiver_layer_mask = + mask.regular.query_custom_receiver_layer_mask = builder.getMasks()[int(ContactLayerType::Entity)].layers; - mask.data.layer = ContactLayer::EntityQueryCustomReceiver; + mask.regular.layer = ContactLayer::EntityQueryCustomReceiver; mBody->setCollisionFilterInfo(mask.raw); setLayerMasks(builder); |
