diff options
| author | Léo Lam <leo@leolam.fr> | 2022-03-05 17:22:12 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-03-05 19:34:01 +0100 |
| commit | ba2d81b7b844559a886d0fb451c6c5b74343e253 (patch) | |
| tree | 4297488a92328f4d625da92433ac600ff2db357f /src/KingSystem/Physics/System/physLayerContactPointInfo.cpp | |
| parent | 88a0a9eb691a3c1925e9b5d185fb12550618e5f8 (diff) | |
ksys/phys: Implement ContactMgr functions used by ContactListener
Diffstat (limited to 'src/KingSystem/Physics/System/physLayerContactPointInfo.cpp')
| -rw-r--r-- | src/KingSystem/Physics/System/physLayerContactPointInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/Physics/System/physLayerContactPointInfo.cpp b/src/KingSystem/Physics/System/physLayerContactPointInfo.cpp index 196f3802..a60602f6 100644 --- a/src/KingSystem/Physics/System/physLayerContactPointInfo.cpp +++ b/src/KingSystem/Physics/System/physLayerContactPointInfo.cpp @@ -67,14 +67,14 @@ void LayerContactPointInfo::Iterator::getData(sead::Vector3f* out, switch (mode) { case Mode::_0: { - if (getPoint()->flags.isOn(ContactPoint::Flag::_2)) + if (getPoint()->flags.isOn(ContactPoint::Flag::Penetrating)) return; *out += getPoint()->separating_normal * -separating_distance; break; } case Mode::_1: { - if (!getPoint()->flags.isOn(ContactPoint::Flag::_2)) + if (!getPoint()->flags.isOn(ContactPoint::Flag::Penetrating)) return; *out += getPoint()->separating_normal * separating_distance; break; |
