fix: disabled bodies not skipping in entities raycast
This commit is contained in:
parent
0649419485
commit
5e10afc9b5
@ -262,7 +262,7 @@ std::optional<Entities::RaycastResult> Entities::rayCast(
|
|||||||
glm::ivec3 foundNormal;
|
glm::ivec3 foundNormal;
|
||||||
|
|
||||||
for (auto [entity, eid, transform, body] : view.each()) {
|
for (auto [entity, eid, transform, body] : view.each()) {
|
||||||
if (eid.uid == ignore) {
|
if (eid.uid == ignore || !body.enabled) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
auto& hitbox = body.hitbox;
|
auto& hitbox = body.hitbox;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user