Work on d_cc_d debug (#3002)

This commit is contained in:
hatal175
2025-12-29 14:12:01 +02:00
committed by GitHub
parent 1f391dc5bd
commit e77f841d35
162 changed files with 1162 additions and 662 deletions
+22 -14
View File
@@ -78,6 +78,10 @@ struct cCcD_SrcSphAttr {
cM3dGSphS mSph;
};
struct cCcD_SrcCylAttr {
cM3dGCylS mCyl;
};
class cCcD_DivideInfo {
private:
/* 0x00 */ u32 mXDivInfo;
@@ -214,7 +218,7 @@ public:
cCcD_Obj* GetHitObj() { return mHitObj; }
const cCcD_Obj* GetHitObj() const { return mHitObj; }
u32 MskSPrm(u32 mask) const { return mSPrm & mask; }
u32 MskRPrm(u32 mask) { return mRPrm & mask; }
u32 MskRPrm(u32 mask) const { return mRPrm & mask; }
void OnSPrmBit(u32 flag) { mSPrm |= flag; }
void OffSPrmBit(u32 flag) { mSPrm &= ~flag; }
u32 ChkSPrm(u32 prm) const { return MskSPrm(prm); }
@@ -228,7 +232,8 @@ STATIC_ASSERT(0x10 == sizeof(cCcD_ObjCommonBase));
#pragma pack(1)
class cCcD_ObjAt : public cCcD_ObjCommonBase {
public:
cCcD_ObjAt() { mType = 0; }
cCcD_ObjAt() { Ct(); }
void Ct() { mType = 0; }
virtual ~cCcD_ObjAt() {}
void SetHit(cCcD_Obj*);
void Set(cCcD_SrcObjAt const&);
@@ -241,7 +246,7 @@ public:
void SetType(u32 type) { mType = type; }
void SetAtp(int atp) { mAtp = atp; }
void ClrSet() { OffSPrmBit(1); }
u32 ChkHit() { return MskRPrm(1); }
u32 ChkHit() const { return MskRPrm(1); }
protected:
/* 0x10 */ int mType;
@@ -266,7 +271,7 @@ public:
u32 GetGrp() const { return MskSPrm(0x1E); }
bool ChkSet() const { return MskSPrm(1); }
void ClrSet() { OffSPrmBit(1); }
u32 ChkHit() { return MskRPrm(1); }
u32 ChkHit() const { return MskRPrm(1); }
private:
/* 0x10 */ int mType;
@@ -276,6 +281,8 @@ STATIC_ASSERT(0x14 == sizeof(cCcD_ObjTg));
class cCcD_ObjCo : public cCcD_ObjCommonBase {
public:
cCcD_ObjCo() { Ct(); }
void Ct() {}
virtual ~cCcD_ObjCo() {}
void SetHit(cCcD_Obj*);
void ClrHit();
@@ -292,7 +299,7 @@ public:
void OnCoSameActorHit() { OnSPrmBit(cCcD_ObjCommonBase::CO_SPRM_SAME_ACTOR_HIT); }
void OffCoSameActorHit() { OffSPrmBit(cCcD_ObjCommonBase::CO_SPRM_SAME_ACTOR_HIT); }
void ClrSet() { OffSPrmBit(1); }
u32 ChkHit() { return MskRPrm(1); }
u32 ChkHit() const { return MskRPrm(1); }
void Set(cCcD_SrcObjCo const& src) { cCcD_ObjCommonBase::Set(src.mBase); }
};
@@ -368,12 +375,12 @@ public:
void ClrAtHit() { mObjAt.ClrHit(); }
void ClrTgHit() { mObjTg.ClrHit(); }
void ClrCoHit() { mObjCo.ClrHit(); }
u32 ChkAtHit() { return mObjAt.ChkHit(); }
u32 ChkTgHit() { return mObjTg.ChkHit(); }
u32 ChkCoHit() { return mObjCo.ChkHit(); }
cCcD_Obj* GetAtHitObj() { return mObjAt.GetHitObj(); }
cCcD_Obj* GetTgHitObj() { return mObjTg.GetHitObj(); }
cCcD_Obj* GetCoHitObj() { return mObjCo.GetHitObj(); }
u32 ChkAtHit() const { return mObjAt.ChkHit(); }
u32 ChkTgHit() const { return mObjTg.ChkHit(); }
u32 ChkCoHit() const { return mObjCo.ChkHit(); }
cCcD_Obj* GetAtHitObj() const { return (cCcD_Obj*)mObjAt.GetHitObj(); }
cCcD_Obj* GetTgHitObj() const { return (cCcD_Obj*)mObjTg.GetHitObj(); }
cCcD_Obj* GetCoHitObj() const { return (cCcD_Obj*)mObjCo.GetHitObj(); }
u32 ChkAtSPrm(u32 prm) { return mObjAt.ChkSPrm(prm); }
u32 ChkCoSPrm(u32 prm) const { return mObjCo.ChkSPrm(prm); }
void OnTgNoSlingHitInfSet() { mObjTg.OnSPrmBit(0x40); }
@@ -463,9 +470,9 @@ class cCcD_GObjInf : public cCcD_Obj {
public:
cCcD_GObjInf() {}
virtual ~cCcD_GObjInf() {}
virtual void ClrAtHit() { mObjAt.ClrHit(); }
virtual void ClrTgHit() { mObjTg.ClrHit(); }
virtual void ClrCoHit() { mObjCo.ClrHit(); }
virtual void ClrAtHit() { cCcD_ObjHitInf::ClrAtHit(); }
virtual void ClrTgHit() { cCcD_ObjHitInf::ClrTgHit(); }
virtual void ClrCoHit() { cCcD_ObjHitInf::ClrCoHit(); }
virtual cCcD_GObjInf const* GetGObjInf() const { return this; }
virtual cCcD_GObjInf* GetGObjInf() { return this; }
};
@@ -582,6 +589,7 @@ public:
virtual void CalcAabBox();
virtual bool GetNVec(cXyz const&, cXyz*) const;
virtual void getShapeAccess(cCcD_ShapeAttr::Shape*) const;
void Set(const cCcD_SrcCylAttr& src) { cM3dGCyl::Set(src.mCyl); }
const cM3dGCyl* GetShapeP() const { return this; }
+7
View File
@@ -108,4 +108,11 @@ inline bool cM3d_Cross_CylSph(const cM3dGCyl* cyl, const cM3dGSph* sph, Vec* out
return cM3d_Cross_CylSph(cyl, sph, out, &sp10);
}
#ifdef DEBUG
bool cM3d_UpMtx_Base(const Vec& param_1, const Vec& param_2, Mtx param_3);
bool cM3d_UpMtx(const Vec& param_1, Mtx param_2);
#endif
#endif
+2 -1
View File
@@ -18,7 +18,7 @@ public:
void SetStartEnd(const cXyz&, const cXyz&);
void SetStartEnd(const Vec&, const Vec&);
void CalcPos(Vec*, f32) const;
void CalcVec(Vec* pOut) const { VECSubtract(&this->mEnd, &this->mStart, pOut); }
void CalcVec(Vec* pOut) const { PSVECSubtract(&this->mEnd, &this->mStart, pOut); }
void SetEnd(const cXyz&);
void set(const Vec& i_start, const Vec& i_end) { SetStartEnd(i_start, i_end); }
@@ -31,6 +31,7 @@ public:
cXyz& GetEndP(void) { return mEnd; }
cXyz& GetEnd() { return mEnd; }
const cXyz& GetEnd() const { return mEnd; }
f32 GetLen() const { return PSVECDistance(&mStart, &mEnd); }
}; // Size = 0x1C
STATIC_ASSERT(0x1C == sizeof(cM3dGLin));
+17 -2
View File
@@ -103,7 +103,7 @@ struct dCcD_SrcTri {
struct dCcD_SrcCyl {
/* 0x00 */ dCcD_SrcGObjInf mObjInf;
/* 0x30 */ cM3dGCylS mCyl;
/* 0x30 */ cCcD_SrcCylAttr mCylAttr;
}; // Size: 0x44
struct dCcD_SrcCps {
@@ -171,12 +171,13 @@ public:
void SetMtrl(u8 mtrl) { mMtrl = mtrl; }
void SetAtSpl(dCcG_At_Spl spl) { mSpl = spl; }
u8 GetSe() { return mSe; }
u8 GetSpl() { return mSpl; }
dCcG_At_Spl GetSpl() { return (dCcG_At_Spl)mSpl; }
u8 GetMtrl() { return mMtrl; }
u8 GetHitMark() { return mHitMark; }
void SetRVec(cXyz& vec) { mRVec = vec; }
void SetHitPos(cXyz& pos) { mHitPos = pos; }
cXyz* GetHitPosP() { return &mHitPos; }
void ClrHit() { dCcD_GAtTgCoCommonBase::ClrActorInfo(); }
// private:
/* 0x1C */ u8 mSe;
@@ -212,6 +213,7 @@ public:
void SetHitPos(cXyz& pos) { mHitPos = pos; }
cXyz* GetHitPosP() { return &mHitPos; }
u8 GetSe() { return mSe; }
void ClrHit() { dCcD_GAtTgCoCommonBase::ClrActorInfo(); }
private:
/* 0x1C */ u8 mSe;
@@ -231,6 +233,7 @@ class dCcD_GObjCo : public dCcD_GAtTgCoCommonBase {
public:
virtual ~dCcD_GObjCo() {}
void Set(dCcD_SrcGObjCo const& pSrc) { dCcD_GAtTgCoCommonBase::Set(pSrc.mBase); }
void ClrHit() { dCcD_GAtTgCoCommonBase::ClrActorInfo(); }
}; // Size = 0x1C ?
class dCcD_GStts : public cCcD_GStts {
@@ -448,6 +451,9 @@ public:
void CalcTgVec();
virtual ~dCcD_Cps() {}
dCcD_Cps() {}
#if DEBUG
virtual void Draw(const GXColor& color);
#endif
}; // Size = 0x144
// Triangle
@@ -457,6 +463,9 @@ public:
cCcD_ShapeAttr* GetShapeAttr();
virtual ~dCcD_Tri() {}
dCcD_Tri() {}
#if DEBUG
virtual void Draw(const GXColor& color);
#endif
};
// Cylinder
@@ -469,6 +478,9 @@ public:
void MoveCTg(cXyz&);
virtual ~dCcD_Cyl() {}
dCcD_Cyl() {}
#if DEBUG
virtual void Draw(const GXColor& color);
#endif
}; // Size = 0x13C
// Sphere
@@ -480,6 +492,9 @@ public:
void MoveCAt(cXyz&);
virtual cCcD_ShapeAttr* GetShapeAttr();
virtual ~dCcD_Sph() {}
#if DEBUG
virtual void Draw(const GXColor& color);
#endif
}; // Size = 0x138
dCcD_GObjInf* dCcD_GetGObjInf(cCcD_Obj* param_0);
+4
View File
@@ -100,6 +100,10 @@ inline void cMtx_copy(const Mtx src, Mtx dst) {
mDoMtx_copy(src, dst);
}
inline void cMtx_trans(Mtx pDest, f32 x, f32 y, f32 z) {
mDoMtx_trans(pDest, x, y, z);
}
inline void cMtx_multVecArray(const Mtx mtx, const Vec* src, Vec* dst, u32 count) {
mDoMtx_multVecArray(mtx, src, dst, count);
}
+41
View File
@@ -1978,6 +1978,47 @@ void cM3d_CalcVecZAngle(Vec const& param_0, csXyz* param_1) {
param_1->z = 0;
}
#ifdef DEBUG
bool cM3d_UpMtx_Base(const Vec& param_1, const Vec& param_2, Mtx param_3) {
Vec local_3c;
Vec auStack_48;
f32 dVar8;
f32 angle;
if (cM3d_IsZero(PSVECMag(&param_2))) {
MTXIdentity(param_3);
return false;
}
PSVECNormalize(&param_2, &auStack_48);
PSVECCrossProduct(&param_1, &auStack_48, &local_3c);
if (cM3d_IsZero(PSVECMag(&local_3c))) {
local_3c.x = 1.0f;
local_3c.y = 0.0f;
local_3c.z = 0.0f;
}
dVar8 = PSVECDotProduct(&param_1, &auStack_48);
if (dVar8 > 1.0f) {
dVar8 = 1.0f;
} else if (dVar8 < -1.0f) {
dVar8 = -1.0f;
}
angle = acosf(dVar8);
C_MTXRotAxisRad(param_3, &local_3c, angle);
return true;
}
static Vec base_y = {0.0f, 1.0f, 0.0f};
bool cM3d_UpMtx(const Vec& param_1, Mtx param_2) {
return cM3d_UpMtx_Base(base_y, param_1, param_2);
}
#endif
void cM3d_PlaneCrossLineProcWork(f32 f1, f32 f2, f32 f3, f32 f4, f32 f5, f32 f6, f32 f7, f32* pF1,
f32* pF2) {
+12 -8
View File
@@ -1249,10 +1249,12 @@ static dCcD_SrcCyl l_cylSrc = {
{0},
},
{
{0.0f, 0.0f, 0.0f},
35.0f,
180.0f,
},
{
{0.0f, 0.0f, 0.0f},
35.0f,
180.0f,
},
}
};
static dCcD_SrcSph l_sphSrc = {
@@ -1276,10 +1278,12 @@ static dCcD_SrcCyl l_atCylSrc = {
{0},
},
{
{0.0f, 0.0f, 0.0f},
180.0f,
130.0f,
},
{
{0.0f, 0.0f, 0.0f},
180.0f,
130.0f,
},
}
};
static dCcD_SrcCps l_atCpsSrc = {
+18 -12
View File
@@ -145,10 +145,12 @@ static dCcD_SrcCyl cc_dr_week_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
0.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcSph cc_dr_tail_src = {
@@ -207,10 +209,12 @@ static dCcD_SrcCyl cc_pillar_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
0.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcCyl cc_down_src = {
@@ -221,10 +225,12 @@ static dCcD_SrcCyl cc_down_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
300.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
300.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcSph cc_downSph_src = {
+12 -8
View File
@@ -132,10 +132,12 @@ static dCcD_SrcCyl cc_ds_backbone_src = {
{0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
130.0f, // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
130.0f, // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcCyl cc_ds_hand_at_cyl_src = {
@@ -147,10 +149,12 @@ static dCcD_SrcCyl cc_ds_hand_at_cyl_src = {
{0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
130.0f, // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
130.0f, // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcSph cc_ds_breath_at_src = {
+12 -8
View File
@@ -196,10 +196,12 @@ void daB_GG_c::initCc() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
130.0f, // mRadius
200.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
130.0f, // mRadius
200.0f // mHeight
} // mCyl
} // mCylAttr
};
const static dCcD_SrcCyl ccHookSrc = {
@@ -210,10 +212,12 @@ void daB_GG_c::initCc() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
130.0f, // mRadius
200.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
130.0f, // mRadius
200.0f // mHeight
} // mCyl
} // mCylAttr
};
const static dCcD_SrcSph ccShieldSphSrc = {
+6 -4
View File
@@ -4875,10 +4875,12 @@ static int daB_GND_Create(fopAc_ac_c* a_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
100.0f, // mRadius
200.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
100.0f, // mRadius
200.0f // mHeight
} // mCyl
}
};
for (int i = 0; i < 2; i++) {
+8 -6
View File
@@ -389,12 +389,14 @@ static int daB_GOS_Create(fopAc_ac_c* i_this) {
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0x0}, // mGObjAt
{dCcD_SE_NONE, 0x5, 0x0, 0x0, 0x2}, // mGObjTg
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
150.0f, // mRadius
60.0f // mHeight
} // mCyl
},
{ // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
150.0f, // mRadius
60.0f // mHeight
} // mCyl
}
};
a_this->mCcStts.Init(0xFA, 0, a_this);
+6 -4
View File
@@ -136,10 +136,12 @@ static dCcD_SrcCyl cc_yo_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph cc_yo_tg_src = {
+18 -12
View File
@@ -41,10 +41,12 @@ static dCcD_SrcCyl cc_yo_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcCyl cc_yo_iron_src = {
@@ -55,10 +57,12 @@ static dCcD_SrcCyl cc_yo_iron_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcCyl cc_yo_cam_src = {
@@ -69,10 +73,12 @@ static dCcD_SrcCyl cc_yo_cam_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
} // mCylAttr
};
} // namespace
+8 -6
View File
@@ -128,12 +128,14 @@ dCcD_SrcCyl cc_zant_roll_src = {
{dCcD_SE_METAL, 0x0, 0x6, 0x0, 0x0}, // mGObjAt
{dCcD_SE_NONE, 0x2, 0x0, 0x0, 0x303}, // mGObjTg
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
},
{ // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
40.0f // mHeight
} // mCyl
}
};
dCcD_SrcSph cc_zant_foot_src = {
+6 -4
View File
@@ -34,10 +34,12 @@ static dCcD_SrcCyl cc_zant_snort_src = {
{0},
},
{
{0.0f, 0.0f, 0.0f},
40.0f,
40.0f,
},
{
{0.0f, 0.0f, 0.0f},
40.0f,
40.0f,
},
}
};
}
+6 -4
View File
@@ -265,10 +265,12 @@ static const dCcD_SrcCyl l_cyl_src = {
{0},
},
{
{0.0f, 0.0f, 0.0f},
0.0f,
0.0f,
},
{
{0.0f, 0.0f, 0.0f},
0.0f,
0.0f,
},
}
};
void daBgObj_c::initAtt() {
+5 -3
View File
@@ -1410,9 +1410,11 @@ static dCcD_SrcCyl l_windAtCylSrc = {
{0},
},
{
{0.0f, 0.0f, 0.0f},
150.0f,
600.0f,
{
{0.0f, 0.0f, 0.0f},
150.0f,
600.0f,
}
}
};
+6 -4
View File
@@ -80,10 +80,12 @@ static dCcD_SrcCyl l_cylSrc = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
55.0f, // mRadius
80.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
55.0f, // mRadius
80.0f // mHeight
} // mCyl
}
};
int daCanoe_c::create() {
+6 -4
View File
@@ -92,10 +92,12 @@ static dCcD_SrcCyl l_cylSrc = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
125.0f, // mRadius
390.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
125.0f, // mRadius
390.0f // mHeight
} // mCyl
}
};
int daCstaF_c::create() {
+4 -2
View File
@@ -99,12 +99,14 @@ static dCcD_SrcCyl l_cylSrc = {
{dCcD_SE_STONE, 0x0, 0x0, 0x0, 0x0}, // mGObjAt
{dCcD_SE_NONE, 0x5, 0x0, 0x0, 0x3}, // mGObjTg
{0x0}, // mGObjCo
}, // mObjInf
},
{ // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
88.0f, // mRadius
392.0f // mHeight
} // mCyl
} // mCyl
}
};
static dCcD_SrcSph l_sphSrc = {
+6 -4
View File
@@ -79,10 +79,12 @@ void e_ai_class::initCcCylinder() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
80.0f, // mRadius
250.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
80.0f, // mRadius
250.0f // mHeight
} // mCyl
}
};
m_ccCyl.Set(cc_cyl_src);
+6 -4
View File
@@ -770,10 +770,12 @@ static cPhs__Step daE_Bee_Create(fopAc_ac_c* i_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
130.0f // mHeight
} // mCcCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
130.0f // mHeight
} // mCcCyl
}
};
_this->mCcCyl.Set(cc_cyl_src);
_this->mCcCyl.SetStts(&_this->mCcStts);
+6 -4
View File
@@ -915,10 +915,12 @@ static cPhs__Step daE_BI_Create(fopAc_ac_c* actor) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
20.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
20.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph at_sph_src = {
+8 -6
View File
@@ -61,12 +61,14 @@ void daE_DF_c::initCcCylinder() {
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0x0}, // mGObjAt
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0x1}, // mGObjTg
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
150.0f, // mRadius
158.0f // mHeight
} // mCyl
},
{ // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
150.0f, // mRadius
158.0f // mHeight
} // mCyl
}
};
mStts.Init(0xff, 0xff, this);
+6 -4
View File
@@ -794,10 +794,12 @@ static cPhs__Step daE_Fs_Create(fopAc_ac_c* i_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
80.0f, // mRadius
230.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
80.0f, // mRadius
230.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph at_sph_src = {
+6 -4
View File
@@ -1637,10 +1637,12 @@ static cPhs__Step daE_GB_Create(fopAc_ac_c* actor) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
20.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
20.0f // mHeight
} // mCyl
}
};
e_gb_class* i_this = (e_gb_class*)actor;
+10 -6
View File
@@ -36,9 +36,11 @@ static dCcD_SrcCyl cc_hp_src = {
{0},
},
{
{0.0f, 0.0f, 0.0f},
50.0f,
300.0f,
{
{0.0f, 0.0f, 0.0f},
50.0f,
300.0f,
}
}
};
@@ -62,9 +64,11 @@ static dCcD_SrcCyl cc_hp_at_src = {
{0},
},
{
{0.0f, 0.0f, 0.0f},
50.0f,
300.0f,
{
{0.0f, 0.0f, 0.0f},
50.0f,
300.0f,
}
}
};
} // namespace
+6 -4
View File
@@ -691,10 +691,12 @@ static int daE_IS_Create(fopAc_ac_c* i_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
200.0f, // mRadius
250.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
200.0f, // mRadius
250.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph core_sph_src = {
+6 -4
View File
@@ -50,10 +50,12 @@ static dCcD_SrcCyl cc_kk_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph cc_kk_at_src = {
+6 -4
View File
@@ -33,10 +33,12 @@ void daE_MD_c::initCcCylinder() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
60.0f, // mRadius
350.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
60.0f, // mRadius
350.0f // mHeight
} // mCyl
}
};
mCcStts.Init(200, 0xFF, this);
+6 -4
View File
@@ -1035,10 +1035,12 @@ static cPhs__Step daE_Nest_Create(fopAc_ac_c* i_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
5.0f, // mRadius
10.0f // mHeight
} // mCcCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
5.0f, // mRadius
10.0f // mHeight
} // mCcCyl
}
};
_this->mCcCyl.Set(cc_cyl_src);
_this->mCcCyl.SetStts(&_this->mCcStts);
+6 -4
View File
@@ -238,10 +238,12 @@ void daE_PM_c::initCcCylinder() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
130.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
130.0f // mHeight
} // mCyl
}
};
mCcStts.Init(0xff, 0xff, this);
+6 -4
View File
@@ -2954,10 +2954,12 @@ static int daE_PO_Create(fopAc_ac_c* i_act_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
300.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
300.0f // mHeight
} // mCyl
}
};
i_this->mCyl.Set(cc_cyl_src);
+12 -8
View File
@@ -40,10 +40,12 @@ static dCcD_SrcCyl cc_pz_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
300.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
300.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcSph cc_pz_at_src = {
@@ -66,10 +68,12 @@ static dCcD_SrcCyl cc_pz_wp_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
300.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
300.0f // mHeight
} // mCyl
} // mCylAttr
};
}
+6 -4
View File
@@ -1808,10 +1808,12 @@ static int daE_RDB_Create(fopAc_ac_c* actor) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
100.0f, // mRadius
200.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
100.0f, // mRadius
200.0f // mHeight
} // mCyl
}
};
e_rdb_class* i_this = (e_rdb_class*)actor;
+6 -4
View File
@@ -92,10 +92,12 @@ void daE_SB_c::initCcCylinder() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
80.0f, // mRadius
130.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
80.0f, // mRadius
130.0f // mHeight
} // mCyl
}
};
mStts.Init(0xFE, 0xFF, this);
+6 -4
View File
@@ -3095,10 +3095,12 @@ static cPhs__Step daE_ST_Create(fopAc_ac_c* a_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
2000.0f // mHeight
} // mLineCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
2000.0f // mHeight
} // mLineCyl
}
};
static dCcD_SrcSph def_sph_src = {
+6 -4
View File
@@ -123,10 +123,12 @@ static dCcD_SrcCyl cc_vt_body_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
150.0f, // mRadius
158.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
150.0f, // mRadius
158.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph cc_vt_attack_src = {
+6 -2
View File
@@ -92,7 +92,9 @@ namespace {
{0}
},
{
{0.0f, 0.0f, 0.0f}, 50.0f, 300.0f,
{
{0.0f, 0.0f, 0.0f}, 50.0f, 300.0f,
}
}
};
@@ -104,7 +106,9 @@ namespace {
{0},
},
{
{0.0f, 0.0f, 0.0f}, 50.0f, 300.0f,
{
{0.0f, 0.0f, 0.0f}, 50.0f, 300.0f,
}
}
};
}
+4 -2
View File
@@ -78,8 +78,10 @@ namespace {
{0},
},
{
{0.0f, 0.0f, 0.0f}, 50.0f, 300.0f,
},
{
{0.0f, 0.0f, 0.0f}, 50.0f, 300.0f,
},
}
};
static dCcD_SrcSph cc_zm_at_src = {
+6 -4
View File
@@ -28,10 +28,12 @@ static dCcD_SrcCyl cc_zs_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
130.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
130.0f // mHeight
} // mCyl
}
};
}
+6 -4
View File
@@ -859,10 +859,12 @@ static int daEp_Create(fopAc_ac_c* a_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
35.0f, // mRadius
120.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
35.0f, // mRadius
120.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph at_sph_src = {
+6 -4
View File
@@ -222,10 +222,12 @@ static dCcD_SrcCyl l_cylSrc = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
230.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
230.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph l_sphSrc = {
+6 -4
View File
@@ -3767,10 +3767,12 @@ static int daMg_Fish_Create(fopAc_ac_c* i_this) {
{ 0 }, // mGObjCo
}, // mObjInf
{
{ 0.0f, 0.0f, 0.0f }, // mCenter
35.0f, // mRadius
35.0f // mHeight
} // mCyl
{
{ 0.0f, 0.0f, 0.0f }, // mCenter
35.0f, // mRadius
35.0f // mHeight
} // mCyl
}
};
static f32 fish_max[11] = {
0.828f,
+6 -4
View File
@@ -1231,10 +1231,12 @@ void daNpcT_DmgStagger_c::calc(BOOL param_0) {
dCcD_SrcCyl daNpcT_c::mCcDCyl = {
daNpcT_c::mCcDObjData,
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
dCcD_SrcSph daNpcT_c::mCcDSph = {
+2
View File
@@ -10,10 +10,12 @@ static s16 daBaseNpc_getGroundAngle(cBgS_PolyInfo* param_0, s16 param_1);
dCcD_SrcCyl daBaseNpc_c::mCcDCyl = {
daBaseNpc_c::mCcDObj,
{
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
dCcD_SrcSph daBaseNpc_c::mCcDSph = {
+6 -4
View File
@@ -710,10 +710,12 @@ void daNpcF_c::tgHitCallBack(fopAc_ac_c* i_this, dCcD_GObjInf* param_1, fopAc_ac
dCcD_SrcCyl daNpcF_c::mCcDCyl = {
daNpcF_c::mCcDObjInfo,
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
dCcD_SrcSph daNpcF_c::mCcDSph = {
+6 -4
View File
@@ -69,10 +69,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
const daNpcBlueNS_HIOParam daNpcBlueNS_Param_c::m = {
+8 -6
View File
@@ -165,12 +165,14 @@ dCcD_SrcCyl const daNpcCd_c::m_cylDat = {
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0x0}, // mGObjAt
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0}, // mGObjTg
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
},
{ // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
int daNpcCd_c::NpcCreate(int param_1) {
+6 -4
View File
@@ -187,10 +187,12 @@ dCcD_SrcCyl const daNpcCd2_c::m_cylDat = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
int daNpcCd2_c::NpcCreate(int param_1) {
+3 -1
View File
@@ -430,7 +430,9 @@ void daNpcCoach_c::initCollision() {
0,
},
{
0.0f, 0.0f
{
0.0f, 0.0f
}
}
};
+3 -1
View File
@@ -18,7 +18,9 @@
dCcD_SrcCyl daNpc_Kn_c::mCcDCyl = {
mCcDObjData,
{{0.0f, 0.0f, 0.0f}, 0.0f, 0.0f},
{
{{0.0f, 0.0f, 0.0f}, 0.0f, 0.0f},
}
};
dCcD_SrcSph daNpc_Kn_c::mCcDSph = {
+6 -4
View File
@@ -7324,10 +7324,12 @@ static int daNpc_Ks_Create(fopAc_ac_c* actor) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
20.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
30.0f, // mRadius
20.0f // mHeight
} // mCyl
}
};
npc_ks_class* i_this = (npc_ks_class*)actor;
+6 -4
View File
@@ -51,10 +51,12 @@ dCcD_SrcCyl const daNpc_Shop0_c::mCylDat = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
daNpc_Shop0_Param_c::param const daNpc_Shop0_Param_c::mParam = {
+6 -4
View File
@@ -66,10 +66,12 @@ const dCcD_SrcGObjInf daTurara_c::mCcDObjInfo = {
dCcD_SrcCyl daTurara_c::mCcDCyl = {
daTurara_c::mCcDObjInfo, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
static u32 const l_bmdIdx[2] = {5, 8};
+6 -4
View File
@@ -13,10 +13,12 @@ static daTvCdlst_HIO_c l_HIO;
dCcD_SrcCyl daTvCdlst_c::mCcDCyl = {
daTvCdlst_c::mCcDObjInfo, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
} // mCylAttr
};
daTvCdlst_HIO_c::daTvCdlst_HIO_c() {
+6 -4
View File
@@ -136,10 +136,12 @@ static dCcD_SrcCyl l_cc_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
120.0f, // mRadius
200.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
120.0f, // mRadius
200.0f // mHeight
} // mCyl
}
};
void daObjYtaihou_c::setNextAngle() {
+6 -4
View File
@@ -34,10 +34,12 @@ static dCcD_SrcGObjInf const l_ccDObjData =
static dCcD_SrcCyl l_ccDCyl = {
l_ccDObjData, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
static dCcD_SrcSph l_ccDSph = {
+3 -1
View File
@@ -21,7 +21,9 @@ dCcD_SrcGObjInf const daBarDesk_c::mCcDObjInfo = {
dCcD_SrcCyl daBarDesk_c::mCcDCyl = {
mCcDObjInfo,
{{0.0f, 0.0f, 0.0f}, 0.0f, 0.0f}
{
{{0.0f, 0.0f, 0.0f}, 0.0f, 0.0f}
}
};
daBarDesk_HIO_c::daBarDesk_HIO_c() : field_0x4(10), field_0x5(3) {
+6 -4
View File
@@ -17,10 +17,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
90.0f, // mRadius
100.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
90.0f, // mRadius
100.0f // mHeight
} // mCyl
}
};
static char* l_arcName = "M_BBox";
+6 -4
View File
@@ -113,10 +113,12 @@ static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
15.0f, // mRadius
60.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
15.0f, // mRadius
60.0f // mHeight
} // mCyl
}
};
+6 -4
View File
@@ -19,10 +19,12 @@ void daObjBHASHI_c::initCcCylinder() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
300.0f, // mRadius
2200.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
300.0f, // mRadius
2200.0f // mHeight
} // mCyl
}
};
mCcStts.Init(0xFF, 0xFF, this);
+6 -4
View File
@@ -131,10 +131,12 @@ dCcD_SrcCyl const daBkyRock_c::s_CcDCyl = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
static int const BMD_IDX[2][3] = {
+6 -4
View File
@@ -125,10 +125,12 @@ static daBmWindow_HIO_c l_HIO;
dCcD_SrcCyl daBmWindow_c::mCcDCyl = {
daBmWindow_c::mCcDObjInfo,
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f, // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f, // mHeight
} // mCyl
}
};
void daBmWindow_c::windowProc() {
+6 -4
View File
@@ -29,10 +29,12 @@ static dCcD_SrcGObjInf const l_ccDObjData =
static dCcD_SrcCyl l_ccDCyl = {
l_ccDObjData, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
static char* l_resName = "H_BouMato";
+12 -8
View File
@@ -1429,10 +1429,12 @@ static void CreateInit(fopAc_ac_c* i_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
5.0f, // mRadius
1000.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
5.0f, // mRadius
1000.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcCyl wire_cyl_src = {
@@ -1443,10 +1445,12 @@ static void CreateInit(fopAc_ac_c* i_this) {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
5.0f, // mRadius
1000.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
5.0f, // mRadius
1000.0f // mHeight
} // mCyl
} // mCylAttr
};
br_s* part = a_this->mBr;
+3 -1
View File
@@ -20,7 +20,9 @@ const dCcD_SrcGObjInf daBubbPilar_c::mCcDObjInfo = {
dCcD_SrcCyl daBubbPilar_c::mCcDCyl = {
daBubbPilar_c::mCcDObjInfo,
{{0.0f, 0.0f, 0.0f}, 0.0f, 0.0f}
{
{{0.0f, 0.0f, 0.0f}, 0.0f, 0.0f}
}
};
daBubbPilar_HIO_c::daBubbPilar_HIO_c() {
+6 -4
View File
@@ -40,10 +40,12 @@ const dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
100.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
100.0f // mHeight
} // mCyl
}
};
int daObjBurnBox_c::Create() {
+12 -8
View File
@@ -665,10 +665,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
10.0f, // mRadius
50.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
10.0f, // mRadius
50.0f // mHeight
} // mCyl
} // mCylAttr
};
const static dCcD_SrcSph l_light_at_sph_src = {
@@ -703,10 +705,12 @@ const static dCcD_SrcCyl l_tg_cyl = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
60.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
60.0f // mHeight
} // mCyl
} // mCylAttr
};
static const GXColor l_light_color = {0xFF, 0xFF, 0xFF, 0xFF};
+2
View File
@@ -65,10 +65,12 @@ static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{
{0.0f, 0.0f, 0.0f}, // mCenter
60.0f, // mRadius
300.0f // mHeight
} // mCyl
}
};
#if DEBUG
+6 -4
View File
@@ -28,10 +28,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
260.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
260.0f // mHeight
} // mCyl
}
};
void daObjChest_c::setBaseMtx() {
+6 -4
View File
@@ -24,10 +24,12 @@ void daObjCRVLH_DW_c::initCcCylinder() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
250.0f, // mRadius
400.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
250.0f, // mRadius
400.0f // mHeight
} // mCyl
}
};
mStts.Init(0xff, 0xff, this);
+12 -8
View File
@@ -91,10 +91,12 @@ static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
70.0f, // mRadius
450.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
70.0f, // mRadius
450.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcCyl l_cyl_src2 = {
@@ -105,10 +107,12 @@ static dCcD_SrcCyl l_cyl_src2 = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
60.0f, // mRadius
300.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
60.0f, // mRadius
300.0f // mHeight
} // mCyl
} // mCylAttr
};
static dCcD_SrcSph l_sph_src = {
+6 -4
View File
@@ -24,10 +24,12 @@ static daFireWood_HIO_c l_HIO;
dCcD_SrcCyl daFireWood_c::mCcDCyl = {
daFireWood_c::mCcDObjInfo,
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
const dCcD_SrcGObjInf daFireWood_c::mCcDObjInfo = {
+6 -4
View File
@@ -31,10 +31,12 @@ const dCcD_SrcGObjInf daFireWood2_c::mCcDObjInfo = {
dCcD_SrcCyl daFireWood2_c::mCcDCyl = {
daFireWood2_c::mCcDObjInfo,
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
static cull_box l_cull_box = {
+6 -4
View File
@@ -349,10 +349,12 @@ void daObjFlag2_c::initCollision() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
15.0f, // mRadius
30.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
15.0f, // mRadius
30.0f // mHeight
} // mCyl
}
};
mStts.Init(0xff, 0xff, this);
mCyl.Set(ccCylSrc);
+6 -4
View File
@@ -59,10 +59,12 @@ static char* l_resNameList[2] = {
static dCcD_SrcCyl l_ccDCyl = {
l_ccDObjData, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
#if DEBUG
+6 -4
View File
@@ -62,10 +62,12 @@ int daGpTaru_c::CreateHeap() {
dCcD_SrcCyl daGpTaru_c::mCcDCyl = {
daGpTaru_c::mCcDObjInfo,
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
} // mCylAttr
};
const dCcD_SrcGObjInf daGpTaru_c::mCcDObjInfo = {
+6 -4
View File
@@ -58,10 +58,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
void daObjGraWall_c::col_init() {
+6 -4
View File
@@ -24,10 +24,12 @@ dCcD_SrcCyl const daObjGraRock_c::mCcDCyl = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
},
};
void daObjGraRock_c::setAttnPos() {
+3 -1
View File
@@ -26,7 +26,9 @@ dCcD_SrcCyl const daGraveStone_c::mCcDCyl = {
{0, 0, 0, 0, 0},
{0},
},
{{0.0f, 0.0f, 0.0f}, 0.0f, 0.0f},
{
{{0.0f, 0.0f, 0.0f}, 0.0f, 0.0f},
},
};
void daGraveStone_c::setBaseMtx() {
+6 -4
View File
@@ -90,10 +90,12 @@ dCcD_SrcCyl const daObjHBarrel_c::s_CcDCyl = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
void daObjHBarrel_c::init() {
+8 -6
View File
@@ -105,12 +105,14 @@ dCcD_SrcCyl const daObjHFtr_c::s_CcDCyl = {
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0x0}, // mGObjAt
{dCcD_SE_NONE, 0x0, 0x0, 0x0, 0x0}, // mGObjTg
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
},
{ // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
int daObjHFtr_c::execute() {
+6 -4
View File
@@ -52,10 +52,12 @@ static dCcD_SrcCyl l_cc_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
1000.0f, // mRadius
1000.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
1000.0f, // mRadius
1000.0f // mHeight
} // mCyl
} // mCylAttr
};
int daObjHBombkoya_c::Create() {
+6 -4
View File
@@ -25,10 +25,12 @@ void daObjHHASHI_c::initCcCylinder() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
110.0f, // mRadius
158.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
110.0f, // mRadius
158.0f // mHeight
} // mCyl
}
};
mStts.Init(0xff, 0xff, this);
+6 -4
View File
@@ -124,10 +124,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
180.0f, // mRadius
290.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
180.0f, // mRadius
290.0f // mHeight
} // mCyl
}
};
int daObjIceBlk_c::saveCurrentPos() {
+6 -4
View File
@@ -83,10 +83,12 @@ static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
100.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
100.0f // mHeight
} // mCyl
}
};
int daObjIceLeaf_c::Create() {
+12 -8
View File
@@ -47,10 +47,12 @@ static const dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
140.0f, // mRadius
70.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
140.0f, // mRadius
70.0f // mHeight
} // mCyl
} // mCylAttr
};
static const dCcD_SrcCyl l_cyl_src2 = {
@@ -61,10 +63,12 @@ static const dCcD_SrcCyl l_cyl_src2 = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
140.0f, // mRadius
70.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
140.0f, // mRadius
70.0f // mHeight
} // mCyl
} // mCylAttr
};
static void* s_boar_sub(void* i_actor, void* i_data) {
+6 -4
View File
@@ -1167,10 +1167,12 @@ const dCcD_SrcCyl daItem_c::m_cyl_src = {
{0},
},
{
{0.0f, 0.0f, 0.0f},
10.0f,
50.0f,
},
{
{0.0f, 0.0f, 0.0f},
10.0f,
50.0f,
},
}
};
void daItem_c::initSpeed(BOOL i_noTypeChk) {
+6 -4
View File
@@ -53,10 +53,12 @@ static char* l_resNameList[2] = {
static dCcD_SrcCyl l_ccDCyl = {
daNpcT_c::mCcDObjData, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
daObj_Kago_c::~daObj_Kago_c() {
+6 -4
View File
@@ -106,10 +106,12 @@ void daObjKaisou_c::initCcCylinder() {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
100.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
50.0f, // mRadius
100.0f // mHeight
} // mCyl
}
};
mCyl.Set(ccCylSrc);
mCyl.SetStts(&mStts);
+6 -4
View File
@@ -23,10 +23,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
20.0f, // mRadius
40.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
20.0f, // mRadius
40.0f // mHeight
} // mCyl
} // mCylAttr
};
static f32 Reflect(cXyz* i_xyz, cBgS_PolyInfo const& param_2, f32 param_3) {
+6 -4
View File
@@ -55,10 +55,12 @@ const static dCcD_SrcCyl ccCylSrc = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
10.0f, // mRadius
30.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
10.0f, // mRadius
30.0f // mHeight
} // mCyl
}
};
void daObjKazeNeko_c::initCcCylinder() {
+6 -4
View File
@@ -30,10 +30,12 @@ static const dCcD_SrcGObjInf l_ccDObjData = {
static dCcD_SrcCyl l_ccDCyl = {
l_ccDObjData,
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
static daObj_KBacket_Param_c l_HIO;
+6 -4
View File
@@ -65,10 +65,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
350.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
40.0f, // mRadius
350.0f // mHeight
} // mCyl
}
};
void daObjKGate_c::initBaseMtx() {
+6 -4
View File
@@ -96,10 +96,12 @@ static dCcD_SrcCyl l_cc_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
300.0f, // mRadius
100.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
300.0f, // mRadius
100.0f // mHeight
} // mCyl
} // mCylAttr
};
#if DEBUG
+6 -4
View File
@@ -35,10 +35,12 @@ const dCcD_SrcGObjInf daKtOnFire_c::mCcDObjInfo = {
dCcD_SrcCyl daKtOnFire_c::mCcDCyl = {
mCcDObjInfo,
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
0.0f, // mRadius
0.0f // mHeight
} // mCyl
}
};
daKtOnFire_HIO_c::daKtOnFire_HIO_c() {
+6 -4
View File
@@ -65,10 +65,12 @@ const static dCcD_SrcCyl ccCylSrc = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, -80.0f, 0.0f}, // mCenter
25.0f, // mRadius
25.0f // mHeight
} // mCyl
{
{0.0f, -80.0f, 0.0f}, // mCenter
25.0f, // mRadius
25.0f // mHeight
} // mCyl
}
};
static f32 dummy(cXyz v) {
+6 -4
View File
@@ -19,10 +19,12 @@ const static dCcD_SrcCyl l_cyl_src = {
{0x0}, // mGObjCo
}, // mObjInf
{
{0.0f, 0.0f, 0.0f}, // mCenter
20.0f, // mRadius
40.0f // mHeight
} // mCyl
{
{0.0f, 0.0f, 0.0f}, // mCenter
20.0f, // mRadius
40.0f // mHeight
} // mCyl
}
};
static f32 Reflect(cXyz* i_vec, cBgS_PolyInfo const& i_wallpoly, f32 i_scale) {

Some files were not shown because too many files have changed in this diff Show More