mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-05 08:33:28 +00:00
CPlayer: Make use of unused CCollidableAABox in ProcessInput()
GM8E v0 makes use of the temporary collidable AA box. This amends the code to make use of it.
This commit is contained in:
parent
4daa8ac374
commit
a2b6b4515d
@ -1698,7 +1698,7 @@ void CPlayer::ProcessInput(const CFinalInput& input, CStateManager& mgr) {
|
||||
rstl::reserved_vector<TUniqueId, 1024> nearList;
|
||||
mgr.BuildColliderList(nearList, *this, expandedBounds);
|
||||
std::optional<zeus::CVector3f> nonIntVec =
|
||||
CGameCollision::FindNonIntersectingVector(mgr, cache, *this, *prim, nearList);
|
||||
CGameCollision::FindNonIntersectingVector(mgr, cache, *this, tmpBox, nearList);
|
||||
if (nonIntVec) {
|
||||
x4a0_failsafeTest->Reset();
|
||||
SetTranslation(GetTranslation() + *nonIntVec);
|
||||
|
Loading…
x
Reference in New Issue
Block a user