summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physClosestPointQuery.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-03-14 01:41:28 +0100
committerLéo Lam <leo@leolam.fr>2022-03-15 01:20:41 +0100
commit0c3df3ed97101d91df6bfa7522e268f35885e58b (patch)
treed2c5f6a4c2529bb7dbe7ca8ef0adc7d872ebf779 /src/KingSystem/Physics/System/physClosestPointQuery.cpp
parent2a9e3318b5b7892bb2c398293138ee1553c96ec0 (diff)
ksys/phys: Add ShapeCast
Diffstat (limited to 'src/KingSystem/Physics/System/physClosestPointQuery.cpp')
-rw-r--r--src/KingSystem/Physics/System/physClosestPointQuery.cpp6
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 {