diff options
| author | Léo Lam <leo@leolam.fr> | 2022-03-14 01:41:28 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-03-15 01:20:41 +0100 |
| commit | 0c3df3ed97101d91df6bfa7522e268f35885e58b (patch) | |
| tree | d2c5f6a4c2529bb7dbe7ca8ef0adc7d872ebf779 /src/KingSystem/Physics/System/physClosestPointQuery.cpp | |
| parent | 2a9e3318b5b7892bb2c398293138ee1553c96ec0 (diff) | |
ksys/phys: Add ShapeCast
Diffstat (limited to 'src/KingSystem/Physics/System/physClosestPointQuery.cpp')
| -rw-r--r-- | src/KingSystem/Physics/System/physClosestPointQuery.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/KingSystem/Physics/System/physClosestPointQuery.cpp b/src/KingSystem/Physics/System/physClosestPointQuery.cpp index c27220a0..ab4b8ffd 100644 --- a/src/KingSystem/Physics/System/physClosestPointQuery.cpp +++ b/src/KingSystem/Physics/System/physClosestPointQuery.cpp @@ -19,11 +19,7 @@ void ClosestPointQuery::reset() { } void ClosestPointQuery::setLayerMasks(const LayerMaskBuilder& builder) { - auto* info = mContactPointInfo; - for (int i = 0; i < NumContactLayerTypes; ++i) { - info->mSubscribedLayers[i] = builder.getMasks()[i].layers; - info->mLayerMask2[i] = builder.getMasks()[i].layers2; - } + mContactPointInfo->setLayerMasks(builder); } bool ClosestPointQuery::isSuccess() const { |
