ksys/phys: Add ShapeCast

This commit is contained in:
Léo Lam
2022-03-14 01:41:28 +01:00
parent 2a9e3318b5
commit 0c3df3ed97
20 changed files with 815 additions and 55 deletions
@@ -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 {