fix void character collision when layer is not specified

This commit is contained in:
Turánszki János
2025-03-24 12:07:16 +01:00
parent 658697e265
commit ece6e8940d
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -5401,6 +5401,13 @@ namespace wi::scene
LayerComponent* layercomponent = layers.GetComponent(entity);
if (layercomponent != nullptr)
{
if (layercomponent->GetLayerMask() == ~0u)
{
// Note: character cannot occupy all layers because then it will collide with itself
// In case when all layers are set (for example when user forgot to specify)
// then only the first layer will be used instead
layercomponent->layerMask = 1;
}
layer = layercomponent->GetLayerMask();
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 71;
// minor bug fixes, alterations, refactors, updates
const int revision = 719;
const int revision = 720;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);