mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: disabled bodies not skipping in entities raycast
This commit is contained in:
parent
0649419485
commit
5e10afc9b5
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ std::optional<Entities::RaycastResult> Entities::rayCast(
|
|||
glm::ivec3 foundNormal;
|
||||
|
||||
for (auto [entity, eid, transform, body] : view.each()) {
|
||||
if (eid.uid == ignore) {
|
||||
if (eid.uid == ignore || !body.enabled) {
|
||||
continue;
|
||||
}
|
||||
auto& hitbox = body.hitbox;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue