mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-03 01:54:02 -04:00
Match daObj_hole
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define C_M3D_G_PLA_H_
|
||||
|
||||
#include "SSystem/SComponent/c_xyz.h"
|
||||
#include "SSystem/SComponent/c_m3d.h"
|
||||
#include "dolphin/mtx/vec.h"
|
||||
|
||||
// Plane with a normal
|
||||
@@ -14,10 +15,19 @@ public:
|
||||
cM3dGPla() {}
|
||||
void CalcAngleXz(short* pAngleX, short* pAngleY) const;
|
||||
void SetupNP0(const Vec&, const Vec&);
|
||||
|
||||
f32 getPlaneFunc(const Vec *p) const {
|
||||
return mD + VECDotProduct(&mNormal, p);
|
||||
}
|
||||
|
||||
const cXyz * GetNP() const { return &mNormal; }
|
||||
f32 getCrossY(const cXyz& i_axis, float* i_value) const {
|
||||
if (!cM3d_IsZero(mNormal.y)) {
|
||||
*i_value = (-mNormal.x * i_axis.x -
|
||||
mNormal.z * i_axis.z -
|
||||
mD) / mNormal.y;
|
||||
}
|
||||
}
|
||||
|
||||
virtual ~cM3dGPla() {}
|
||||
};
|
||||
|
||||
@@ -120,6 +120,7 @@ public:
|
||||
void ClrGroundLanding() { m_flags &= ~GROUND_LANDING; }
|
||||
void ClrGroundAway() { m_flags &= ~GROUND_AWAY; }
|
||||
void ClrWallHit() { m_flags &= ~WALL_HIT; }
|
||||
void SetWallNone() { m_flags |= WALL_NONE; }
|
||||
void SetRoofNone() { m_flags |= ROOF_NONE; }
|
||||
void SetRoofHit() { m_flags |= ROOF_HIT; }
|
||||
void SetWaterNone() { m_flags |= WATER_NONE; }
|
||||
@@ -209,4 +210,4 @@ public:
|
||||
virtual ~dBgS_ObjAcch() {}
|
||||
}; // Size: 0x1C4
|
||||
|
||||
#endif /* D_BG_D_BG_S_ACCH_H */
|
||||
#endif /* D_BG_D_BG_S_ACCH_H */
|
||||
|
||||
@@ -54,9 +54,9 @@ public:
|
||||
|
||||
class dBgS_ObjLinChk : public dBgS_LinChk {
|
||||
public:
|
||||
dBgS_ObjLinChk();
|
||||
dBgS_ObjLinChk() { SetObj(); }
|
||||
|
||||
virtual ~dBgS_ObjLinChk();
|
||||
virtual ~dBgS_ObjLinChk() {}
|
||||
};
|
||||
|
||||
class dBgS_BombLinChk : public dBgS_LinChk {
|
||||
@@ -87,4 +87,4 @@ public:
|
||||
virtual ~dBgS_MirLightLinChk();
|
||||
};
|
||||
|
||||
#endif /* D_BG_D_BG_S_LIN_CHK_H */
|
||||
#endif /* D_BG_D_BG_S_LIN_CHK_H */
|
||||
|
||||
@@ -40,4 +40,4 @@ public:
|
||||
|
||||
STATIC_ASSERT(sizeof(dBgS_PolyPassChk) == 0xC);
|
||||
|
||||
#endif /* D_BG_D_BG_S_POLY_PASS_CHK_H */
|
||||
#endif /* D_BG_D_BG_S_POLY_PASS_CHK_H */
|
||||
|
||||
@@ -49,5 +49,8 @@ public:
|
||||
};
|
||||
|
||||
void dLib_bcks_setAnm(const char*, mDoExt_McaMorf*, s8*, s8*, s8*, const int*, const dLib_anm_prm_c*, bool);
|
||||
bool dLib_checkPlayerInCircle(cXyz, f32, f32);
|
||||
|
||||
void dLib_setNextStageBySclsNum(u8, s8);
|
||||
|
||||
#endif /* D_LIB_H */
|
||||
|
||||
Reference in New Issue
Block a user