mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-23 09:04:21 +00:00
Area: Implement ForceRecoveryKidsArea (#932)
This commit is contained in:
parent
db7946ca75
commit
28b9a2100a
|
|
@ -1043,15 +1043,15 @@ Area/ForceRecoveryKidsArea.o:
|
|||
- offset: 0x005844
|
||||
size: 84
|
||||
label: _ZN21ForceRecoveryKidsAreaC2EPKc
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x005898
|
||||
size: 96
|
||||
label: _ZN21ForceRecoveryKidsAreaC1EPKc
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x0058f8
|
||||
size: 140
|
||||
label: _ZN21ForceRecoveryKidsArea4initERKN2al12AreaInitInfoE
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
Area/In2DAreaMoveControl.o:
|
||||
'.text':
|
||||
- offset: 0x005984
|
||||
|
|
|
|||
18
src/Area/ForceRecoveryKidsArea.cpp
Normal file
18
src/Area/ForceRecoveryKidsArea.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "Area/ForceRecoveryKidsArea.h"
|
||||
|
||||
#include "Library/Area/AreaInitInfo.h"
|
||||
#include "Library/Math/MathUtil.h"
|
||||
#include "Library/Placement/PlacementFunction.h"
|
||||
|
||||
ForceRecoveryKidsArea::ForceRecoveryKidsArea(const char* name) : al::AreaObj(name) {}
|
||||
|
||||
void ForceRecoveryKidsArea::init(const al::AreaInitInfo& info) {
|
||||
al::AreaObj::init(info);
|
||||
|
||||
sead::Matrix34f recoveryMtx = sead::Matrix34f::ident;
|
||||
al::tryGetLinksMatrixTR(&recoveryMtx, info, "LinkRecoveryPos");
|
||||
|
||||
recoveryMtx.getTranslation(mRecoveryPos);
|
||||
recoveryMtx.getBase(mRecoveryUp, 1);
|
||||
al::normalize(&mRecoveryUp);
|
||||
}
|
||||
|
|
@ -11,6 +11,6 @@ public:
|
|||
void init(const al::AreaInitInfo& info) override;
|
||||
|
||||
private:
|
||||
sead::Vector3f mTargetPos;
|
||||
sead::Vector3f mTargetUp;
|
||||
sead::Vector3f mRecoveryPos = {0.0f, 0.0f, 0.0f};
|
||||
sead::Vector3f mRecoveryUp;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue