Merge branch 'zeldaret:main' into d_menu

This commit is contained in:
Mattias Blum
2025-05-06 22:33:53 -04:00
committed by GitHub
20 changed files with 5413 additions and 485 deletions
@@ -79,7 +79,12 @@ inline float atan2f(float y, float x) { return (float)atan2(y, x); }
inline float sinf(float x) { return sin(x); }
inline float cosf(float x) { return cos(x); }
inline float tanf(float x) { return tan(x); }
}; // namespace std
#endif
#ifdef __cplusplus
namespace std {
#endif
extern inline float sqrtf(float x) {
const double _half = .5;
const double _three = 3.0;
@@ -94,6 +99,7 @@ extern inline float sqrtf(float x) {
}
return x;
}
#ifdef __cplusplus
}; // namespace std
#endif
+64 -17
View File
@@ -139,12 +139,12 @@ f32 dCamParam_c::ratiof(f32 t, f32 upper, f32 lower, f32 base) {
BOOL dCamParam_c::DefaultRadius(f32* radius) {
/* Nonmatching */
f32 min, max;
if (mpStyle->m3C < mpStyle->m40) {
min = mpStyle->m3C;
max = mpStyle->m40;
if (mpStyle->styleParam[dCamStyleParam_UNK13] < mpStyle->styleParam[dCamStyleParam_UNK14]) {
min = mpStyle->styleParam[dCamStyleParam_UNK13];
max = mpStyle->styleParam[dCamStyleParam_UNK14];
} else {
min = mpStyle->m40;
max = mpStyle->m3C;
min = mpStyle->styleParam[dCamStyleParam_UNK14];
max = mpStyle->styleParam[dCamStyleParam_UNK13];
}
if (*radius > max) {
@@ -159,52 +159,99 @@ BOOL dCamParam_c::DefaultRadius(f32* radius) {
}
/* 800AFB00-800AFB88 .text RadiusRatio__11dCamParam_cFf */
void dCamParam_c::RadiusRatio(f32) {
f32 dCamParam_c::RadiusRatio(f32) {
/* Nonmatching */
}
/* 800AFB88-800AFBB8 .text CenterHeight__11dCamParam_cFf */
f32 dCamParam_c::CenterHeight(f32 t) {
return ratiof(t, mpStyle->centerHeightUpper, mpStyle->centerHeightLower, mpStyle->centerHeightBase);
return ratiof(t, mpStyle->styleParam[dCamStyleParam_CENTER_HEIGHT_UPPER], mpStyle->styleParam[dCamStyleParam_CENTER_HEIGHT_LOWER], mpStyle->styleParam[dCamStyleParam_CENTER_HEIGHT_BASE]);
/* Nonmatching */
}
/* 800AFBB8-800AFBE8 .text Fovy__11dCamParam_cFf */
f32 dCamParam_c::Fovy(f32 t) {
return ratiof(t, mpStyle->fovyUpper, mpStyle->fovyLower, mpStyle->fovyBase);
return ratiof(t, mpStyle->styleParam[dCamStyleParam_FOVY_UPPER], mpStyle->styleParam[dCamStyleParam_FOVY_LOWER], mpStyle->styleParam[dCamStyleParam_FOVY_BASE]);
}
/* 800AFBE8-800AFC74 .text LockonLongitude__11dCamParam_cFf */
s16 dCamParam_c::LockonLongitude(f32 t) {
cSAngle ret(mpStyle->lockonLongitudeMin);
ret += (cSAngle(mpStyle->lockonLongitudeMax) - ret) * t;
cSAngle ret(mpStyle->styleParam[dCamStyleParam_LOCKON_LONGITUDE_MIN]);
ret += (cSAngle(mpStyle->styleParam[dCamStyleParam_LOCKON_LONGITUDE_MAX]) - ret) * t;
return ret.Val();
}
/* 800AFC74-800AFD00 .text LockonLatitude__11dCamParam_cFf */
s16 dCamParam_c::LockonLatitude(f32 t) {
cSAngle ret(mpStyle->lockonLatitudeMin);
ret += (cSAngle(mpStyle->lockonLatitudeMax) - ret) * t;
cSAngle ret(mpStyle->styleParam[dCamStyleParam_LOCKON_LATITUDE_MIN]);
ret += (cSAngle(mpStyle->styleParam[dCamStyleParam_LOCKON_LATITUDE_MAX]) - ret) * t;
return ret.Val();
}
/* 800AFD00-800AFD20 .text LockonFovy__11dCamParam_cFf */
f32 dCamParam_c::LockonFovy(f32 t) {
f32 ret = mpStyle->lockonFovyMin;
ret += t * (mpStyle->lockonFovyMax - ret);
f32 ret = mpStyle->styleParam[dCamStyleParam_LOCKON_FOVY_MIN];
ret += t * (mpStyle->styleParam[dCamStyleParam_LOCKON_FOVY_MAX] - ret);
return ret;
}
/* 800AFD20-800AFD40 .text LockonCenterHeight__11dCamParam_cFf */
f32 dCamParam_c::LockonCenterHeight(f32 t) {
f32 ret = mpStyle->lockonCenterHeightMin;
ret += t * (mpStyle->lockonCenterHeightMax - ret);
f32 ret = mpStyle->styleParam[dCamStyleParam_LOCKON_CENTER_HEIGHT_MIN];
ret += t * (mpStyle->styleParam[dCamStyleParam_LOCKON_CENTER_HEIGHT_MAX] - ret);
return ret;
}
/* 800AFD40-800AFEE0 .text __ct__11dCamSetup_cFv */
dCamSetup_c::dCamSetup_c() {
/* Nonmatching */
/* Nonmatching - regalloc */
mDrawNear = 1.0f;
mDrawFar = 100000.0f;
m00C = 1;
mForceType = mModeSwitchType = -1;
mCusCus = 0.2f;
m024 = 0.05f;
m060 = 80.0f;
m05C = -60.0f;
m028 = 0.33f;
m02C = 0.02f;
m050 = 100.0f;
m030 = 0.75f;
mBaseCushion = 0.28f;
mJumpCushion = 1.0f;
m058 = 0.15f;
m044 = 0.005f;
m054 = 0.06f;
mCurveWeight = 1.0f;
m034 = 25.0f;
m048 = 70.0f;
mParallelDist = 60.0f;
mTrimVistaHeight = 52.0f;
mTrimCineScopeHeight = 65.0f;
m094 = 150;
m098 = 60.0f;
m09C = 0.3f;
m0A0 = 0.2f;
mDMCValue = 0.1f;
mDMCAngle = 30.0f;
mDebugFlags = 1;
m0A4 = 27.0f;
m0A8 = 20;
mChargeLatitude = 2.0f;
mChargeTimer = 60;
mChargeBRatio = 0.15f;
mManualStartCThreshold = 0.66f;
mManualEndVal = 0.0f;
m06C = 45.0f;
mForceLockOffDist = 1800.0f;
mForceLockOffTimer = 120;
m078 = 0.5f;
m07C = 0.4f;
m080 = 10.0f;
m084 = 4.0f;
m0C0 = 1.0f;
mLockonChangeCushion = 100.0f;
mLockonChangeTimer = -1;
}
/* 800AFEE0-800AFF40 .text __dt__11dCamSetup_cFv */
+889 -2
View File
@@ -7,8 +7,895 @@
#include "global.h"
dCamera__Style dCamParam_c::styles[145] = {
// TODO
const dCamera__Style dCamParam_c::styles[] = {
{
'NN00',
0,
{-99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
0,
},
{
'FN08',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 5.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 450.0f, 300.0f, -99999.992188f, 0.66f, 0.05f, 25.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.2f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'PN05',
0x5,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1000.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 0.75f, 0.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK040,
},
{
'PN12',
0x5,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1000.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 0.75f, 10.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK040,
},
{
'EN00',
0xB,
{-99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
0,
},
{
'FN12',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -15.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 220.0f, 180.0f, -99999.992188f, 0.66f, 0.05f, 12.0f, -40.0f, 60.0f, 2.0f, 0.08f, 1.0f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'TT01',
0x3,
{0.0f, 0.0f, -99999.992188f, 0.75f, 0.0f, -40.0f, 0.0f, 0.0f, 0.0f, 0.0f, 300.0f, 80.0f, 0.0f, 0.0f, 0.0f, 10.0f, 0.0f, 0.0f, -15.0f, 35.0f, 0.0f, 0.0f, -99999.992188f, 0.0f, 30.0f, 40.0f, 45.0f, 0.0f, 0.0f, 0.0f},
dCamParam_UNK001,
},
{
'TT02',
0x3,
{0.0f, 0.0f, -99999.992188f, 0.6f, 0.0f, -30.0f, 0.0f, 0.0f, 0.0f, 0.0f, 280.0f, 80.0f, 0.0f, 0.0f, 0.0f, 10.0f, 0.0f, 0.0f, -15.0f, 40.0f, 0.0f, 0.0f, -99999.992188f, 0.0f, 30.0f, 40.0f, 45.0f, 0.0f, 0.0f, 0.0f},
dCamParam_UNK001,
},
{
'TT03',
0x3,
{0.0f, 0.0f, -99999.992188f, 0.6f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 300.0f, 80.0f, 0.0f, 0.0f, 0.0f, 10.0f, 0.0f, 0.0f, 0.0f, 40.0f, 0.0f, 0.0f, -99999.992188f, 0.0f, 30.0f, 40.0f, 45.0f, 0.0f, 0.0f, 0.0f},
dCamParam_UNK001,
},
{
'LA03',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.2f, 0.4f, 0.0f, -17.5f, 20.0f, -17.5f, 0.0f, 375.0f, 125.0f, 750.0f, 425.0f, 350.0f, 18.0f, -40.0f, 40.0f, 20.0f, 15.0f, 0.03f, 0.0f, -99999.992188f, 40.0f, 40.0f, 55.0f, 52.5f, 54.5f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LP01',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.05f, 0.2f, -30.0f, 12.5f, 20.0f, -30.0f, -30.0f, 220.0f, 125.0f, 625.0f, 220.0f, 220.0f, 0.0f, -40.0f, 30.0f, -10.0f, 10.0f, 0.1f, 0.05f, -99999.992188f, 0.0f, 0.0f, 55.0f, 55.0f, 55.0f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LA02',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.3f, 0.1f, -7.5f, -17.5f, 20.0f, -22.5f, -2.5f, 400.0f, 125.0f, 750.0f, 450.0f, 350.0f, 30.0f, -40.0f, 40.0f, 35.0f, 10.0f, 0.04f, 0.0f, -99999.992188f, 80.0f, 40.0f, 55.0f, 52.5f, 54.5f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'FN13',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.2f, 0.4f, 7.5f, -17.5f, 20.0f, -22.5f, -2.5f, 400.0f, 125.0f, 750.0f, 450.0f, 350.0f, 0.0f, -40.0f, 40.0f, 30.0f, -5.0f, 0.0f, 0.0f, -99999.992188f, 80.0f, 60.0f, 55.0f, 52.5f, 54.5f, 50.0f, 60.0f},
dCamParam_UNK001 | dCamParam_UNK002,
},
{
'LH01',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.9f, 0.1f, -50.0f, 3.8f, 20.0f, -50.0f, -50.0f, 350.0f, 125.0f, 875.0f, 325.0f, 375.0f, 50.0f, -20.0f, 60.0f, 55.0f, 20.0f, 0.2f, 0.05f, -99999.992188f, 10.0f, 5.0f, 55.0f, 55.0f, 55.0f, 50.0f, 65.0f},
dCamParam_UNK001 | dCamParam_UNK002,
},
{
'LH02',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.9f, 0.1f, -50.0f, 3.8f, 20.0f, -50.0f, -50.0f, 350.0f, 125.0f, 375.0f, 350.0f, 350.0f, 50.0f, -20.0f, 60.0f, 55.0f, 23.0f, 0.2f, 0.05f, -99999.992188f, 10.0f, 5.0f, 55.0f, 50.0f, 65.0f, 50.0f, 65.0f},
dCamParam_UNK002,
},
{
'LB02',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.2f, 0.4f, -12.5f, -17.5f, 20.0f, -17.5f, -7.5f, 400.0f, 125.0f, 750.0f, 450.0f, 350.0f, 0.0f, -40.0f, 40.0f, 10.0f, -5.0f, 0.01f, 0.0f, -99999.992188f, 170.0f, 160.0f, 55.0f, 52.5f, 54.5f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LP02',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.05f, 0.2f, -30.0f, 12.5f, 20.0f, -30.0f, -30.0f, 200.0f, 125.0f, 750.0f, 200.0f, 200.0f, 0.0f, -40.0f, 40.0f, -10.0f, 10.0f, 0.1f, 0.05f, -99999.992188f, 0.0f, 0.0f, 52.5f, 52.5f, 52.5f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LP03',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.1f, 0.4f, -30.0f, 12.5f, 20.0f, -30.0f, -30.0f, 220.0f, 125.0f, 220.0f, 220.0f, 220.0f, 5.0f, -40.0f, 30.0f, -10.0f, 10.0f, 0.1f, 0.05f, -99999.992188f, 0.0f, 0.0f, 55.0f, 55.0f, 55.0f, 55.0f, 55.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LP04',
0x2,
{-100000.0f, -100000.0f, -99999.992188f, 0.1f, 0.4f, -25.0f, 15.0f, 20.0f, -25.0f, -25.0f, 200.0f, 200.0f, 320.0f, 250.0f, 350.0f, 5.0f, -10.0f, 20.0f, 5.0f, 5.0f, 0.2f, 0.05f, -99999.992188f, 0.0f, 0.0f, 45.0f, 45.0f, 45.0f, 45.0f, 45.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'CC01',
0xC,
{0.0f, 0.0f, -99999.992188f, 0.6f, 0.2f, 10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 145.0f, 145.0f, 145.0f, 0.1f, 0.25f, 0.0f, -99999.992188f, -99999.992188f, 0.25f, 0.25f, -99999.992188f, -99999.992188f, -99999.992188f, 0.1f, 0.8f, 50.0f, -99999.992188f, -99999.992188f, 0.5f, 0.5f},
dCamParam_UNK002 | dCamParam_UNK080,
},
{
'CC02',
0xC,
{0.0f, 0.0f, -99999.992188f, 0.6f, 0.2f, 10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 145.0f, 145.0f, 145.0f, 0.1f, 0.25f, 0.0f, -99999.992188f, -99999.992188f, 0.25f, 0.25f, -99999.992188f, -99999.992188f, -99999.992188f, 0.1f, 0.8f, 50.0f, -99999.992188f, -99999.992188f, 0.5f, 0.5f},
dCamParam_UNK002 | dCamParam_UNK040 | dCamParam_UNK080,
},
{
'LL06',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.5f, 0.25f, 0.0f, -17.5f, 20.0f, -17.5f, 0.0f, 375.0f, 125.0f, 750.0f, 425.0f, 350.0f, 15.0f, -70.0f, 70.0f, 20.0f, 12.0f, 0.01f, 0.0f, -99999.992188f, 70.0f, 50.0f, 55.0f, 52.5f, 54.5f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL08',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 6.5f, -17.5f, 20.0f, -5.0f, 5.0f, 420.0f, 125.0f, 350.0f, 380.0f, 280.0f, 2.0f, -70.0f, 70.0f, -5.0f, 0.0f, 0.08f, 0.0f, -99999.992188f, 60.0f, 5.0f, 55.0f, 52.5f, 54.5f, 52.0f, 56.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL07',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 7.5f, -17.5f, 20.0f, -22.5f, 5.0f, 450.0f, 125.0f, 750.0f, 480.0f, 420.0f, 0.0f, -70.0f, 70.0f, 25.0f, 10.0f, 0.04f, 0.0f, -99999.992188f, 75.0f, 20.0f, 55.0f, 52.5f, 54.5f, 48.0f, 62.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LP10',
0x2,
{-10000.0f, -10000.0f, -99999.992188f, 0.05f, 0.2f, -30.0f, 12.5f, 20.0f, -30.0f, 0.0f, 320.0f, 200.0f, 750.0f, 200.0f, 200.0f, 0.0f, -40.0f, 40.0f, -10.0f, -20.0f, 0.1f, 0.05f, -99999.992188f, 0.0f, 0.0f, 52.5f, 52.5f, 52.5f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'SN15',
0x4,
{20.0f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 70.0f, 0.75f, 0.04f, -99999.992188f, -99999.992188f, 90.0f, 50.0f, 0.2f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002 | dCamParam_UNK010 | dCamParam_UNK080,
},
{
'BW07',
0x8,
{120.0f, 80.0f, -99999.992188f, 0.2f, 0.15f, 40.0f, -99999.992188f, -99999.992188f, -60.0f, -99999.992188f, 800.0f, -99999.992188f, -99999.992188f, -500.0f, 40.0f, 40.0f, 30.0f, 50.0f, -10.0f, -99999.992188f, 1.0f, 0.1f, -99999.992188f, -99999.992188f, -99999.992188f, 50.0f, -99999.992188f, -99999.992188f, 20.0f, -5.0f},
dCamParam_UNK001,
},
{
'FN18',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -25.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 900.0f, 800.0f, -99999.992188f, 0.66f, 0.05f, 78.0f, 75.0f, 80.0f, 2.0f, 0.05f, 0.01f, 0.01f, -99999.992188f, 0.8f, 0.1f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'JN05',
0xD,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 900.0f, 50.0f, -99999.992188f, -99999.992188f, 1000.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 0.75f, 0.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK001 | dCamParam_UNK004,
},
{
'XN06',
0x6,
{-99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 0.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK040,
},
{
'LB01',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.2f, 0.4f, -12.5f, -17.5f, 20.0f, -17.5f, -7.5f, 400.0f, 125.0f, 750.0f, 460.0f, 400.0f, 0.0f, -40.0f, 40.0f, 10.0f, -5.0f, 0.01f, 0.0f, -99999.992188f, 170.0f, 160.0f, 55.0f, 52.5f, 54.5f, 48.0f, 62.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LA01',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.3f, 0.1f, -7.5f, -17.5f, 20.0f, -22.5f, -2.5f, 400.0f, 125.0f, 750.0f, 480.0f, 420.0f, 30.0f, -40.0f, 40.0f, 30.0f, 20.0f, 0.06f, 0.0f, -99999.992188f, 60.0f, 40.0f, 55.0f, 52.5f, 54.5f, 55.0f, 65.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'BP07',
0x8,
{120.0f, 200.0f, -99999.992188f, 0.75f, 0.15f, 40.0f, -99999.992188f, -99999.992188f, -60.0f, -99999.992188f, 900.0f, -99999.992188f, -99999.992188f, -500.0f, 40.0f, 10.0f, -5.0f, 30.0f, -10.0f, -99999.992188f, 1.0f, 0.1f, -99999.992188f, -99999.992188f, -99999.992188f, 60.0f, -99999.992188f, -99999.992188f, 20.0f, -5.0f},
dCamParam_UNK001 | dCamParam_UNK004,
},
{
'LW02',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.3f, 0.1f, -20.0f, -20.0f, 0.0f, -20.0f, -60.0f, 250.0f, 125.0f, 450.0f, 650.0f, 650.0f, 0.0f, -20.0f, 40.0f, -10.0f, 45.0f, 0.2f, 0.05f, -99999.992188f, 0.0f, 0.0f, 60.0f, 60.0f, 60.0f, 60.0f, 60.0f},
dCamParam_UNK002,
},
{
'HP16',
0x9,
{20.0f, 10.0f, -99999.992188f, 0.75f, 0.25f, -70.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 200.0f, 200.0f, -99999.992188f, 1.0f, 1.0f, 60.0f, 60.0f, -99999.992188f, 0.05f, 1.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.25f},
dCamParam_UNK002,
},
{
'HN16',
0x9,
{0.0f, 0.0f, -99999.992188f, 0.5f, 0.25f, -60.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 350.0f, 320.0f, -99999.992188f, 0.3f, 0.3f, 25.0f, 25.0f, -99999.992188f, 0.5f, 0.25f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 62.5f, -99999.992188f, -99999.992188f, -99999.992188f, 0.25f},
dCamParam_UNK002,
},
{
'BN07',
0x8,
{90.0f, 150.0f, -99999.992188f, 0.65f, 0.15f, 10.0f, -99999.992188f, -99999.992188f, 5.0f, -99999.992188f, 800.0f, -99999.992188f, -99999.992188f, -430.0f, 40.0f, 5.0f, -10.0f, 30.0f, -5.0f, -99999.992188f, 0.2f, 0.1f, -99999.992188f, -99999.992188f, -99999.992188f, 70.0f, -99999.992188f, -99999.992188f, 20.0f, -5.0f},
dCamParam_UNK001 | dCamParam_UNK004,
},
{
'LP05',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.05f, 0.2f, 0.0f, 12.5f, 20.0f, 0.0f, 0.0f, 220.0f, 125.0f, 625.0f, 220.0f, 220.0f, 0.0f, -40.0f, 30.0f, -10.0f, 10.0f, 0.1f, 0.05f, -99999.992188f, 0.0f, 0.0f, 55.0f, 55.0f, 55.0f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LP06',
0x2,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 32.0f, 32.0f, 32.0f, 32.0f, 32.0f, 1250.0f, 1000.0f, 1100.0f, 1250.0f, 1250.0f, 0.0f, -10.0f, 10.0f, 2.0f, 0.5f, 0.01f, 0.1f, -99999.992188f, 0.1f, 0.1f, 55.0f, 52.5f, 54.5f, 60.0f, 70.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'HN18',
0xF,
{80.0f, 0.0f, -99999.992188f, 0.8f, 0.15f, 150.0f, -99999.992188f, 500.0f, -99999.992188f, -99999.992188f, 520.0f, 80.0f, -99999.992188f, 0.25f, 0.7f, 50.0f, 5.0f, -99999.992188f, 0.75f, 0.15f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 90.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.25f},
dCamParam_UNK002,
},
{
'FN25',
0x1,
{0.5f, 0.0f, -99999.992188f, 0.75f, 0.25f, 80.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 850.0f, 500.0f, -99999.992188f, 0.66f, 0.05f, 30.0f, 0.0f, 60.0f, 2.0f, 0.05f, 0.1f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001,
},
{
'BP08',
0x8,
{90.0f, 250.0f, -99999.992188f, 0.75f, 0.15f, 120.0f, -99999.992188f, -99999.992188f, 1.0f, -99999.992188f, 1000.0f, -99999.992188f, -99999.992188f, 0.0f, 40.0f, 20.0f, -5.0f, 30.0f, 0.0f, -99999.992188f, 1.0f, 0.1f, -99999.992188f, -99999.992188f, -99999.992188f, 60.0f, -99999.992188f, -99999.992188f, 0.0f, -5.0f},
dCamParam_UNK001 | dCamParam_UNK004,
},
{
'BN08',
0x8,
{90.0f, 250.0f, -99999.992188f, 0.75f, 0.15f, 120.0f, -99999.992188f, -99999.992188f, 10.0f, -99999.992188f, 1000.0f, -99999.992188f, -99999.992188f, 0.0f, 40.0f, 20.0f, -5.0f, 30.0f, 0.0f, -99999.992188f, 0.2f, 0.1f, -99999.992188f, -99999.992188f, -99999.992188f, 60.0f, -99999.992188f, -99999.992188f, 0.0f, -5.0f},
dCamParam_UNK001 | dCamParam_UNK004,
},
{
'FN29',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 550.0f, 450.0f, -99999.992188f, 0.66f, 0.05f, 40.0f, -50.0f, 70.0f, 2.0f, 0.05f, 0.16f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'SX01',
0x4,
{20.0f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -2.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 40.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 70.0f, 0.45f, 0.04f, -99999.992188f, -99999.992188f, 90.0f, 50.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002 | dCamParam_UNK100,
},
{
'SY01',
0x4,
{0.0f, 30.0f, -99999.992188f, -99999.992188f, -99999.992188f, 30.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 120.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 70.0f, 0.6f, 0.04f, -99999.992188f, -99999.992188f, 90.0f, 60.0f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002,
},
{
'SX02',
0x4,
{20.0f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -2.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 40.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 60.0f, 0.45f, 0.04f, -99999.992188f, -99999.992188f, 90.0f, 60.0f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002 | dCamParam_UNK100,
},
{
'MM06',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.8f, 0.8f, 80.0f, 80.0f, 20.0f, 0.0f, 1.92f, 250.0f, 200.0f, 800.0f, 0.0f, 16.0f, 0.0f, -55.0f, 70.0f, 0.0f, 2.0f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 90.0f, 80.0f, 90.0f, 0.0f, 0.48f},
dCamParam_UNK002,
},
{
'MM05',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, -20.0f, -20.0f, 20.0f, 0.0f, 1.92f, 250.0f, 150.0f, 320.0f, 0.0f, 15.0f, 0.0f, -40.0f, 40.0f, 0.0f, 2.0f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 60.0f, 70.0f, 0.0f, 0.48f},
dCamParam_UNK002,
},
{
'MM09',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 40.0f, 50.0f, 40.0f, 0.0f, 0.2f, 320.0f, 150.0f, 800.0f, 0.0f, 30.0f, 0.0f, -30.0f, 10.0f, 0.0f, 1.8f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 60.0f, 65.0f, 60.0f, 0.0f, 0.2f},
dCamParam_UNK002,
},
{
'MM04',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, -20.0f, -20.0f, -40.0f, 0.0f, 1.0f, 320.0f, 150.0f, 950.0f, 0.0f, 29.0f, 0.0f, 0.0f, 5.0f, 0.0f, 0.2f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 50.0f, 60.0f, 0.0f, 0.48f},
dCamParam_UNK002,
},
{
'LN17',
0xC,
{0.0f, 0.0f, -99999.992188f, 0.6f, 0.2f, 10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 145.0f, 145.0f, 145.0f, 0.1f, 0.25f, 0.0f, -99999.992188f, -99999.992188f, 0.25f, 0.25f, -99999.992188f, -99999.992188f, -99999.992188f, 0.1f, 0.8f, 50.0f, -99999.992188f, -99999.992188f, 0.5f, 0.5f},
dCamParam_UNK002 | dCamParam_UNK040,
},
{
'QN07',
0xE,
{-120.0f, 0.0f, -99999.992188f, 0.75f, 0.15f, 50.0f, -99999.992188f, -99999.992188f, 80.0f, -99999.992188f, 800.0f, -99999.992188f, -99999.992188f, 200.0f, 40.0f, 0.0f, -5.0f, 60.0f, 20.0f, -99999.992188f, 0.1f, 0.1f, -99999.992188f, -99999.992188f, -99999.992188f, 60.0f, -99999.992188f, -99999.992188f, -15.0f, -5.0f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'LE01',
0x1,
{0.0f, 75.0f, -99999.992188f, 0.15f, 0.15f, -30.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 300.0f, 250.0f, -99999.992188f, 0.66f, 0.05f, 5.0f, -40.0f, 60.0f, 2.0f, 0.15f, 0.3f, 0.05f, -99999.992188f, 0.8f, 0.15f, 40.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.15f},
dCamParam_UNK001 | dCamParam_UNK200 | dCamParam_UNK400,
},
{
'LN01',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.25f, 0.2f, -15.0f, -17.5f, 20.0f, -22.5f, -10.0f, 450.0f, 125.0f, 750.0f, 480.0f, 420.0f, 7.5f, -60.0f, 60.0f, 10.0f, 5.0f, 0.08f, 0.0f, -99999.992188f, 40.0f, 5.0f, 42.5f, 52.5f, 54.5f, 40.0f, 45.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LW01',
0x1,
{0.0f, 0.0f, -99999.992188f, 0.15f, 0.15f, -25.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 450.0f, 400.0f, -99999.992188f, 0.5f, 0.15f, 20.0f, -40.0f, 60.0f, 2.0f, 0.15f, 0.3f, 0.05f, -99999.992188f, 0.8f, 0.15f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.15f},
dCamParam_UNK001 | dCamParam_UNK200 | dCamParam_UNK400,
},
{
'GN01',
0x12,
{5.0f, 0.0f, -99999.992188f, 0.5f, 0.25f, 30.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, 400.0f, 400.0f, -99999.992188f, 0.66f, 0.05f, 10.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.0f, -99999.992188f, -99999.992188f, 1.0f, 0.18f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK400,
},
{
'MM01',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 0.0f, 0.0f, 30.0f, 0.0f, 1.0f, 320.0f, 240.0f, 700.0f, 0.0f, 20.0f, 0.0f, 0.0f, 30.0f, 0.0f, 0.6f, 0.33f, 0.66f, -99999.992188f, 0.0f, 8.0f, 55.0f, 50.0f, 60.0f, 0.0f, 0.4f},
dCamParam_UNK002,
},
#if VERSION == VERSION_JPN
{
'MM03',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 10.0f, 0.0f, 40.0f, 0.0f, 2.0f, 320.0f, 250.0f, 700.0f, 0.0f, 27.0f, 0.0f, -5.0f, 30.0f, 0.0f, 0.6f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 50.0f, 62.0f, 0.0f, 0.45f},
dCamParam_UNK002,
},
#endif
{
'MM02',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 0.0f, 10.0f, 35.0f, 0.0f, 1.92f, 320.0f, 250.0f, 950.0f, 0.0f, 27.0f, 0.0f, -5.0f, 30.0f, 0.0f, 0.9f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 52.5f, 60.0f, 0.0f, 0.4f},
dCamParam_UNK002,
},
{
'MM10',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 15.0f, 10.0f, 20.0f, 0.0f, 0.45f, 320.0f, 300.0f, 2000.0f, 0.0f, 45.0f, 10.0f, 5.0f, 35.0f, 0.0f, 0.42f, 0.33f, 0.5f, -99999.992188f, 0.0f, 4.0f, 55.0f, 52.0f, 62.0f, 0.0f, 0.48f},
dCamParam_UNK002,
},
{
'MM08',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, -20.0f, 50.0f, 50.0f, 0.0f, 0.0f, 400.0f, 350.0f, 800.0f, 0.0f, 34.0f, 0.0f, -20.0f, 50.0f, 0.0f, 3.6f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 55.0f, 55.0f, 0.0f, 0.0f},
dCamParam_UNK002,
},
{
'MM83',
0xA,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 0.0f, 20.0f, 300.0f, 0.0f, 5.0f, 320.0f, 350.0f, 1500.0f, 0.0f, 40.0f, 0.0f, 0.0f, 15.0f, 0.0f, 1.0f, 0.33f, 0.2f, -99999.992188f, 0.0f, 8.0f, 55.0f, 65.0f, 55.0f, 0.0f, 1.0f},
dCamParam_UNK002,
},
{
'FP01',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 480.0f, 280.0f, -99999.992188f, 0.66f, 0.05f, 10.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.2f, -99999.992188f, -99999.992188f, 1.0f, 0.18f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'ZZ00',
0x11,
{10.0f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, 200.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 320.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 3.0f, -99999.992188f, -99999.992188f, 0.3f, -99999.992188f, 0.33f, -99999.992188f, -99999.992188f, 1.0f, -99999.992188f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
0,
},
{
'PN13',
0x5,
{1.0f, 0.0f, -99999.992188f, 0.15f, 0.15f, -20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1000.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 0.75f, 10.0f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002 | dCamParam_UNK040,
},
{
'FN82',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 30.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1200.0f, 350.0f, -99999.992188f, 0.66f, 0.05f, 15.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.1f, -99999.992188f, -99999.992188f, 1.0f, 0.01f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK400,
},
{
'IN01',
0x7,
{50.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 20.0f, 20.0f, -99999.992188f, -99999.992188f, -99999.992188f, 680.0f, 250.0f, -99999.992188f, 0.66f, 0.05f, 12.0f, -40.0f, 60.0f, -99999.992188f, 0.05f, 0.4f, 0.05f, -99999.992188f, 45.0f, 45.0f, 62.0f, -99999.992188f, 2.5f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'IN02',
0x7,
{50.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 20.0f, 20.0f, -99999.992188f, -99999.992188f, -99999.992188f, 750.0f, 450.0f, -99999.992188f, 0.66f, 0.05f, 35.0f, -40.0f, 60.0f, -99999.992188f, 0.05f, 0.4f, 0.05f, -99999.992188f, 10.0f, 10.0f, 65.0f, -99999.992188f, 2.0f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'MM82',
0xA,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 0.0f, 20.0f, 100.0f, 0.0f, 45.0f, 320.0f, 200.0f, 1500.0f, 30.0f, 50.0f, 30.0f, -10.0f, 30.0f, 0.0f, 1.5f, 0.33f, 0.2f, -99999.992188f, 0.0f, 6.0f, 55.0f, 55.0f, 55.0f, 0.0f, 1.0f},
dCamParam_UNK002,
},
{
'LL11',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 7.5f, -17.5f, 20.0f, 20.0f, 40.0f, 1000.0f, 300.0f, 2000.0f, 800.0f, 1500.0f, 0.0f, -10.0f, 40.0f, 30.0f, 40.0f, 0.04f, 0.02f, -99999.992188f, 80.0f, 30.0f, 60.0f, 50.0f, 80.0f, 52.0f, 70.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL01',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 7.5f, -17.5f, 20.0f, -22.5f, 5.0f, 450.0f, 125.0f, 750.0f, 480.0f, 420.0f, 0.0f, -60.0f, 60.0f, 20.0f, -5.0f, 0.04f, 0.02f, -99999.992188f, 75.0f, 20.0f, 55.0f, 52.5f, 54.5f, 48.0f, 62.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL02',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 6.5f, -17.5f, 20.0f, -22.5f, -2.5f, 420.0f, 125.0f, 350.0f, 450.0f, 400.0f, 2.0f, -60.0f, 60.0f, 15.0f, 0.0f, 0.05f, 0.02f, -99999.992188f, 80.0f, 15.0f, 55.0f, 52.5f, 54.5f, 45.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL03',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 0.0f, -17.5f, 20.0f, -17.5f, 0.0f, 375.0f, 125.0f, 750.0f, 425.0f, 350.0f, 15.0f, -60.0f, 60.0f, 20.0f, 12.0f, 0.01f, 0.01f, -99999.992188f, 70.0f, 50.0f, 55.0f, 52.5f, 54.5f, 50.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL04',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.1f, 0.4f, -10.0f, 15.0f, 20.0f, -12.5f, -12.5f, 350.0f, 200.0f, 400.0f, 300.0f, 400.0f, 10.0f, -10.0f, 20.0f, 0.0f, 0.0f, 0.06f, 0.02f, -99999.992188f, 80.0f, 10.0f, 47.0f, 47.0f, 47.0f, 47.0f, 47.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL05',
0x2,
{-10000.0f, -10000.0f, -99999.992188f, 0.2f, 0.4f, 6.5f, -17.5f, 20.0f, -40.0f, -50.0f, 280.0f, 125.0f, 350.0f, 300.0f, 100.0f, 2.0f, -40.0f, 40.0f, -15.0f, -5.0f, 0.08f, 0.08f, -99999.992188f, 10.0f, 5.0f, 55.0f, 52.5f, 54.5f, 65.0f, 70.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL10',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.2f, 0.4f, 6.5f, -17.5f, 20.0f, -40.0f, 0.0f, 1000.0f, 750.0f, 1100.0f, 700.0f, 350.0f, 2.0f, -40.0f, 40.0f, -8.0f, 0.0f, 0.08f, 0.05f, -99999.992188f, 40.0f, 10.0f, 55.0f, 52.5f, 54.5f, 60.0f, 70.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL09',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 60.0f, -20.0f, 120.0f, 0.0f, -10.0f, 420.0f, 300.0f, 350.0f, 650.0f, 800.0f, 2.0f, -60.0f, 60.0f, 15.0f, 5.0f, 0.04f, 0.01f, -99999.992188f, 80.0f, 15.0f, 55.0f, 52.5f, 54.5f, 45.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL12',
0x2,
{-10000.0f, -10000.0f, -99999.992188f, 0.2f, 0.4f, 500.0f, -7.5f, 500.0f, 300.0f, 300.0f, 550.0f, 500.0f, 600.0f, 400.0f, 500.0f, 2.0f, -40.0f, 40.0f, -15.0f, -15.0f, 0.08f, 0.08f, -99999.992188f, 10.0f, 5.0f, 55.0f, 52.5f, 54.5f, 65.0f, 70.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL13',
0x2,
{-10000.0f, -10000.0f, -99999.992188f, 0.4f, 0.2f, 7.5f, -17.5f, 20.0f, 0.0f, 22.5f, 550.0f, 125.0f, 750.0f, 530.0f, 580.0f, -7.5f, -60.0f, 60.0f, 5.0f, -15.0f, 0.04f, 0.04f, -99999.992188f, 60.0f, 20.0f, 55.0f, 52.5f, 54.5f, 65.0f, 70.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL14',
0x2,
{-10000.0f, -10000.0f, -99999.992188f, 0.4f, 0.2f, 0.0f, -17.5f, 20.0f, 0.0f, 60.0f, 600.0f, 125.0f, 350.0f, 500.0f, 700.0f, 0.0f, -60.0f, 60.0f, 0.0f, -10.0f, 0.05f, 0.05f, -99999.992188f, 30.0f, 15.0f, 55.0f, 52.5f, 54.5f, 53.0f, 57.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL15',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 10.0f, -17.5f, 20.0f, -22.5f, -2.5f, 420.0f, 125.0f, 800.0f, 599.0f, 799.0f, 30.0f, 0.0f, 60.0f, 20.0f, 40.0f, 0.05f, 0.05f, -99999.992188f, 80.0f, 15.0f, 55.0f, 52.5f, 54.5f, 45.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL16',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.2f, 0.4f, 30.0f, 0.0f, 50.0f, 30.0f, 10.0f, 750.0f, 650.0f, 1000.0f, 600.0f, 350.0f, -10.0f, -40.0f, 40.0f, -8.0f, 0.0f, 0.08f, 0.08f, -99999.992188f, 40.0f, 10.0f, 55.0f, 52.5f, 54.5f, 60.0f, 70.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'LL82',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.75f, 0.25f, 0.0f, 0.0f, 0.0f, -15.0f, 0.0f, 0.0f, 0.0f, 0.0f, 600.0f, 400.0f, 0.0f, 0.0f, 0.0f, -10.0f, 30.0f, 0.1f, 0.0f, -99999.992188f, 60.0f, 0.0f, 0.0f, 0.0f, 0.0f, 60.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'FN01',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 480.0f, 280.0f, -99999.992188f, 0.66f, 0.08f, 10.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.2f, -99999.992188f, -99999.992188f, 1.0f, 0.18f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN02',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 360.0f, 240.0f, -99999.992188f, 0.66f, 0.1f, 10.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.3f, 0.05f, -99999.992188f, 0.8f, 0.1f, 58.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN03',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -5.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 350.0f, 260.0f, -99999.992188f, 0.66f, 0.08f, 14.0f, 10.0f, 60.0f, 2.0f, 0.05f, 0.3f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN04',
0x1,
{1.0f, 0.1f, -99999.992188f, 0.75f, 0.25f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 480.0f, 350.0f, -99999.992188f, 0.66f, 0.1f, 18.0f, 15.0f, 25.0f, 2.0f, 0.05f, 0.39f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN06',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -25.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 230.0f, 240.0f, -99999.992188f, 0.2f, 0.05f, 5.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.01f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN09',
0x1,
{0.5f, 0.0f, -99999.992188f, 0.75f, 0.25f, -10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 460.0f, 210.0f, -99999.992188f, 0.66f, 0.09f, 15.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.08f, -99999.992188f, -99999.992188f, 2.0f, 0.3f, 52.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK400,
},
{
'FN07',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 430.0f, 280.0f, -99999.992188f, 0.66f, 0.1f, 13.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.35f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN10',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 15.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 420.0f, 250.0f, -99999.992188f, 0.66f, 0.08f, 5.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.25f, -99999.992188f, -99999.992188f, 1.0f, 0.1f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN14',
0x1,
{0.5f, 0.0f, -99999.992188f, 0.75f, 0.25f, 10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 450.0f, 300.0f, -99999.992188f, 0.66f, 0.12f, 15.0f, 0.0f, 60.0f, 2.0f, 0.05f, 0.1f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001,
},
{
'FN15',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 32.0f, -10000.0f, -10000.0f, -10000.0f, -10000.0f, 320.0f, 200.0f, -10000.0f, 0.66f, 0.08f, -23.0f, -20.0f, 10.0f, 2.0f, 0.5f, 0.01f, 0.1f, -99999.992188f, 0.1f, 0.1f, 55.0f, -10000.0f, -10000.0f, -10000.0f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN17',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -5.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 380.0f, 200.0f, -99999.992188f, 0.66f, 0.1f, 10.0f, -40.0f, 60.0f, 2.0f, 0.08f, 0.18f, 0.05f, -99999.992188f, 2.0f, 0.1f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN20',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 330.0f, 280.0f, -99999.992188f, 0.66f, 0.15f, 12.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.2f, -99999.992188f, -99999.992188f, 1.0f, 0.1f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK200 | dCamParam_UNK400,
},
{
'FN21',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.8f, 0.25f, 8.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 340.0f, 220.0f, -99999.992188f, 0.66f, 0.08f, 6.0f, -40.0f, 70.0f, 2.0f, 0.05f, 0.16f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 64.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN22',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -25.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1500.0f, 1200.0f, -99999.992188f, 0.66f, 0.08f, 35.0f, 30.0f, 40.0f, 2.0f, 0.05f, 0.1f, -10000.0f, -99999.992188f, 2.0f, 0.05f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN23',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 32.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1000.0f, 800.0f, -99999.992188f, 0.66f, 0.1f, 20.0f, 15.0f, 25.0f, 2.0f, 0.05f, 0.1f, -10000.0f, -99999.992188f, 2.0f, 0.05f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN24',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 600.0f, 350.0f, -99999.992188f, 0.66f, 0.09f, 25.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.33f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN26',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -25.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 800.0f, 800.0f, -99999.992188f, 0.66f, 0.1f, 35.0f, 30.0f, 40.0f, 2.0f, 0.05f, 0.1f, -10000.0f, -99999.992188f, 2.0f, 0.05f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN27',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 32.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1250.0f, 1000.0f, -99999.992188f, 0.66f, 0.09f, 0.0f, -10.0f, 10.0f, 2.0f, 0.5f, 0.01f, 0.1f, -99999.992188f, 0.1f, 0.1f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN28',
0x1,
{0.5f, 0.0f, -99999.992188f, 0.75f, 0.25f, 5.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 330.0f, 250.0f, -99999.992188f, 0.66f, 0.09f, 8.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.06f, -99999.992188f, -99999.992188f, 2.0f, 0.3f, 52.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK400,
},
{
'FN30',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 300.0f, -10000.0f, -10000.0f, -10000.0f, -10000.0f, 1000.0f, 900.0f, -10000.0f, 0.66f, 0.08f, -15.0f, -15.0f, 10.0f, 2.0f, 0.5f, 0.01f, 0.1f, -99999.992188f, 0.1f, 0.1f, 55.0f, -10000.0f, -10000.0f, -10000.0f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN31',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 30.0f, -10000.0f, -10000.0f, -10000.0f, -10000.0f, 420.0f, 250.0f, -10000.0f, 0.66f, 0.08f, 0.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.25f, -10000.0f, -99999.992188f, 1.0f, 0.1f, 55.0f, -10000.0f, -10000.0f, -10000.0f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN32',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 30.0f, -10000.0f, -10000.0f, -10000.0f, -10000.0f, 360.0f, 220.0f, -10000.0f, 0.66f, 0.08f, -5.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.25f, 0.05f, -99999.992188f, 0.8f, 0.1f, 58.0f, -10000.0f, -10000.0f, -10000.0f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN33',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1300.0f, 1000.0f, 1350.0f, 0.66f, 0.05f, 30.0f, 0.0f, 60.0f, 2.0f, 0.09f, 0.3f, 0.05f, -99999.992188f, 0.8f, 0.1f, 58.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN34',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 30.0f, -10000.0f, -10000.0f, -10000.0f, -10000.0f, 1000.0f, 900.0f, -10000.0f, 0.66f, 0.08f, 45.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.25f, 0.05f, -99999.992188f, 0.8f, 0.1f, 58.0f, -10000.0f, -10000.0f, -10000.0f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN35',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1250.0f, 1000.0f, -99999.992188f, 0.66f, 0.09f, 0.0f, -15.0f, 10.0f, 0.0f, 0.5f, 0.01f, 0.1f, -99999.992188f, 0.1f, 0.1f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'LL17',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.4f, 0.2f, 7.5f, -17.5f, 20.0f, 20.0f, 40.0f, 1000.0f, 300.0f, 2000.0f, 800.0f, 1600.0f, 0.0f, -10.0f, 40.0f, 30.0f, 40.0f, 0.04f, 0.03f, -99999.992188f, 80.0f, 30.0f, 60.0f, 50.0f, 80.0f, 52.0f, 45.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'FN37',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 15.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 1050.0f, 950.0f, -99999.992188f, 0.66f, 0.05f, 20.0f, 15.0f, 45.0f, 2.0f, 0.05f, 0.12f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK400,
},
#if VERSION == VERSION_JPN
{
'FN38',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 40.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 800.0f, 600.0f, -99999.992188f, 0.66f, 0.15f, 15.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.3f, 0.05f, -99999.992188f, 0.8f, 0.1f, 62.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
#endif
{
'BE08',
0x8,
{100.0f, 0.0f, -99999.992188f, 0.75f, 0.15f, 80.0f, -99999.992188f, -99999.992188f, 0.0f, -99999.992188f, 500.0f, -99999.992188f, -99999.992188f, 0.0f, 40.0f, 20.0f, -80.0f, 80.0f, 0.0f, -99999.992188f, 0.1f, 0.1f, -99999.992188f, -99999.992188f, -99999.992188f, 78.0f, -99999.992188f, -99999.992188f, 0.0f, -5.0f},
dCamParam_UNK001 | dCamParam_UNK004,
},
{
'BE07',
0x8,
{100.0f, 0.0f, -99999.992188f, 0.75f, 0.15f, 240.0f, -99999.992188f, -99999.992188f, 0.0f, -99999.992188f, 750.0f, -99999.992188f, -99999.992188f, 0.0f, 40.0f, 15.0f, -80.0f, 80.0f, 0.0f, -99999.992188f, 0.1f, 0.1f, -99999.992188f, -99999.992188f, -99999.992188f, 66.0f, -99999.992188f, -99999.992188f, 0.0f, -5.0f},
dCamParam_UNK001 | dCamParam_UNK004,
},
{
'TT04',
0x3,
{0.0f, 0.0f, -99999.992188f, 0.6f, 0.0f, 5.0f, 0.0f, 0.0f, 0.0f, 0.0f, 290.0f, 80.0f, 0.0f, 0.0f, 0.0f, 10.0f, 0.0f, 0.0f, 15.0f, 30.0f, 0.0f, 0.0f, -99999.992188f, 0.0f, 30.0f, 42.0f, 45.0f, 0.0f, 0.0f, 0.0f},
dCamParam_UNK001,
},
{
'FP38',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 40.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 800.0f, 600.0f, -99999.992188f, 0.66f, 0.15f, 45.0f, -40.0f, 80.0f, 2.0f, 0.05f, 0.3f, 0.05f, -99999.992188f, 0.8f, 0.1f, 62.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN39',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, -20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 380.0f, 300.0f, -99999.992188f, 0.66f, 0.05f, 0.0f, -20.0f, 20.0f, 2.0f, 0.05f, 0.12f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK400,
},
{
'MM16',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 10.0f, 20.0f, 40.0f, 0.0f, 1.0f, 320.0f, 250.0f, 500.0f, 0.0f, 28.0f, 20.0f, 20.0f, 30.0f, 0.0f, 0.3f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 50.0f, 62.0f, 0.0f, 0.45f},
dCamParam_UNK002,
},
{
'MM14',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.55f, 0.15f, 10.0f, 5.0f, 20.0f, 0.0f, 0.5f, 320.0f, 180.0f, 700.0f, 0.0f, 30.0f, 10.0f, 5.0f, 40.0f, 0.0f, 1.7f, 0.33f, 0.5f, -99999.992188f, 0.0f, 3.0f, 55.0f, 50.0f, 60.0f, 0.0f, 0.42f},
dCamParam_UNK002,
},
{
'MM15',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.55f, 0.15f, 10.0f, 5.0f, 20.0f, 0.0f, 0.5f, 320.0f, 200.0f, 1000.0f, 0.0f, 40.0f, 10.0f, 5.0f, 40.0f, 0.0f, 1.7f, 0.33f, 0.66f, -99999.992188f, 0.0f, 3.0f, 55.0f, 50.0f, 60.0f, 0.0f, 0.42f},
dCamParam_UNK002,
},
{
'MM07',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.55f, 0.15f, 90.0f, 80.0f, 180.0f, 0.0f, 4.0f, 750.0f, 500.0f, 1000.0f, 0.0f, 32.0f, 0.0f, -5.0f, 23.0f, 0.0f, 1.65f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 60.0f, 55.0f, 70.0f, 0.0f, 1.5f},
dCamParam_UNK002,
},
{
'FN81',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 100.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 600.0f, 600.0f, -99999.992188f, 0.9f, 0.01f, 0.0f, 0.0f, 60.0f, 2.0f, 0.05f, 0.0f, -99999.992188f, -99999.992188f, 0.8f, 0.1f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK400,
},
{
'FN40',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 70.0f, -10000.0f, -10000.0f, -10000.0f, -10000.0f, 800.0f, 500.0f, -10000.0f, 0.66f, 0.08f, -5.0f, -20.0f, 20.0f, 2.0f, 0.5f, 0.01f, 0.1f, -99999.992188f, 0.1f, 0.1f, 58.0f, -10000.0f, -10000.0f, -10000.0f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN41',
0x1,
{0.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 12.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 350.0f, 100.0f, -99999.992188f, 0.66f, 0.09f, 15.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.1f, -99999.992188f, -99999.992188f, 2.0f, 0.3f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK400,
},
{
'FN19',
0x1,
{1.0f, 0.1f, -99999.992188f, 0.75f, 0.25f, -25.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 480.0f, 250.0f, -99999.992188f, 0.66f, 0.12f, -2.0f, -15.0f, 25.0f, 2.0f, 0.05f, 0.39f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK400,
},
{
'LL81',
0x2,
{-99999.992188f, -99999.992188f, -99999.992188f, 0.75f, 0.25f, 0.0f, 0.0f, 0.0f, 50.0f, 200.0f, 0.0f, 0.0f, 0.0f, 600.0f, 600.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, -99999.992188f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 60.0f, 60.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'DD01',
0x10,
{60.0f, 0.0f, -99999.992188f, 0.03f, 0.03f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 550.0f, 450.0f, -99999.992188f, -99999.992188f, -99999.992188f, 5.0f, -99999.992188f, -99999.992188f, 0.2f, -99999.992188f, 0.15f, -99999.992188f, -99999.992188f, 0.33f, -99999.992188f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002,
},
{
'MM19',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 0.0f, 10.0f, 35.0f, 0.0f, 1.88f, 320.0f, 250.0f, 600.0f, 0.0f, 20.0f, 0.0f, -5.0f, 70.0f, 0.0f, 2.8f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 52.5f, 60.0f, 0.0f, 0.4f},
dCamParam_UNK002,
},
{
'DD02',
0x10,
{80.0f, 0.0f, -99999.992188f, 0.03f, 0.03f, 50.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 550.0f, 450.0f, -99999.992188f, -99999.992188f, -99999.992188f, 5.0f, -99999.992188f, -99999.992188f, 0.33f, -99999.992188f, 0.15f, -99999.992188f, -99999.992188f, 0.5f, -99999.992188f, 55.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002,
},
{
'FN42',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 25.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 380.0f, 300.0f, -99999.992188f, 0.66f, 0.05f, 15.0f, -20.0f, 80.0f, 2.0f, 0.05f, 0.12f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'IN03',
0x7,
{-180.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 0.0f, 10.0f, -99999.992188f, -99999.992188f, -99999.992188f, 880.0f, 500.0f, -99999.992188f, 0.66f, 0.05f, 50.0f, -40.0f, 60.0f, -99999.992188f, 0.05f, 0.75f, 0.05f, -99999.992188f, 115.0f, 115.0f, 75.0f, -99999.992188f, 0.5f, -99999.992188f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN43',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 200.0f, -10000.0f, -10000.0f, -10000.0f, -500.0f, 900.0f, 800.0f, -10000.0f, 0.66f, 0.08f, -3.0f, -20.0f, 20.0f, 2.0f, 0.5f, 0.01f, 0.1f, -99999.992188f, 0.1f, 0.1f, 58.0f, -10000.0f, -10000.0f, -10000.0f, 0.05f},
dCamParam_UNK002 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'FN11',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 5.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 410.0f, 300.0f, -99999.992188f, 0.66f, 0.08f, 22.0f, 15.0f, 30.0f, 2.0f, 0.05f, 0.07f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
{
'MM21',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 0.0f, 20.0f, 35.0f, 0.0f, 1.2f, 320.0f, 250.0f, 750.0f, 0.0f, 27.0f, 0.0f, -30.0f, 30.0f, 0.0f, 2.2f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 52.5f, 60.0f, 0.0f, 0.4f},
dCamParam_UNK002,
},
{
'MM20',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 10.0f, 0.0f, 30.0f, 0.0f, 2.0f, 320.0f, 250.0f, 500.0f, 0.0f, 26.0f, 0.0f, -5.0f, 20.0f, 0.0f, 1.2f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 50.0f, 64.0f, 0.0f, 0.9f},
dCamParam_UNK002,
},
{
'FN05',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 400.0f, 300.0f, -99999.992188f, 0.66f, 0.05f, -5.0f, 0.0f, 20.0f, 2.0f, 0.05f, 0.12f, -99999.992188f, -99999.992188f, 1.0f, 0.2f, 62.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK400,
},
{
'FN36',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.25f, 0.1f, -10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 460.0f, 350.0f, -99999.992188f, 0.66f, 0.12f, 5.0f, -60.0f, 60.0f, 2.0f, 0.05f, 0.5f, -99999.992188f, -99999.992188f, 1.0f, 0.18f, 66.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK002,
},
{
'MM81',
0xA,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 0.0f, 30.0f, 50.0f, 0.0f, 5.0f, 320.0f, 250.0f, 1950.0f, 0.0f, 55.0f, 0.0f, -15.0f, 90.0f, 0.0f, 3.0f, 0.33f, 0.2f, -99999.992188f, 0.0f, 6.0f, 55.0f, 65.0f, 55.0f, 0.0f, 1.5f},
dCamParam_UNK002,
},
{
'SS01',
0x4,
{0.0f, 0.0f, -99999.992188f, -99999.992188f, -99999.992188f, -10.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 20.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 70.0f, 0.45f, 0.04f, -99999.992188f, -99999.992188f, 90.0f, 50.0f, 0.2f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002 | dCamParam_UNK080,
},
{
'LL18',
0x2,
{-10000.0f, -10000.0f, -99999.992188f, 0.2f, 0.4f, 6.5f, -17.5f, 20.0f, -80.0f, 0.0f, 280.0f, 125.0f, 350.0f, 800.0f, 1200.0f, 2.0f, -40.0f, 40.0f, 20.0f, -15.0f, 0.3f, 0.0f, -99999.992188f, 10.0f, 35.0f, 65.0f, 65.0f, 70.0f, 60.0f, 70.0f},
dCamParam_UNK002 | dCamParam_UNK004,
},
{
'DD04',
0x10,
{80.0f, 0.0f, -99999.992188f, 0.03f, 0.03f, 60.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 450.0f, 400.0f, -99999.992188f, -99999.992188f, -99999.992188f, -4.0f, -99999.992188f, -99999.992188f, 0.33f, -99999.992188f, 0.0f, -99999.992188f, -99999.992188f, -45.0f, -99999.992188f, 45.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f},
dCamParam_UNK002,
},
{
'MM22',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 0.0f, 0.0f, 30.0f, 0.0f, 3.0f, 320.0f, 240.0f, 600.0f, 0.0f, 19.0f, 0.0f, 0.0f, 15.0f, 0.0f, 0.7f, 0.33f, 0.66f, -99999.992188f, 0.0f, 8.0f, 55.0f, 50.0f, 60.0f, 0.0f, 0.5f},
dCamParam_UNK002,
},
{
'MM18',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 20.0f, 30.0f, 25.0f, 0.0f, 0.5f, 300.0f, 210.0f, 480.0f, 0.0f, 18.0f, 20.0f, 35.0f, 0.0f, 0.0f, 2.1f, 0.33f, 0.66f, -99999.992188f, 0.0f, 8.0f, 55.0f, 55.0f, 58.0f, 0.0f, 0.45f},
dCamParam_UNK002,
},
{
'MM17',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 30.0f, 25.0f, 30.0f, 0.0f, 0.5f, 250.0f, 160.0f, 420.0f, 0.0f, 20.0f, 20.0f, 40.0f, 5.0f, 0.0f, 2.4f, 0.33f, 0.66f, -99999.992188f, 0.0f, 8.0f, 55.0f, 55.0f, 58.0f, 0.0f, 0.45f},
dCamParam_UNK002,
},
#if VERSION != VERSION_JPN
{
'MM03',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 10.0f, 0.0f, 30.0f, 0.0f, 5.2f, 320.0f, 260.0f, 660.0f, 0.0f, 25.0f, 0.0f, -10.0f, 30.0f, 0.0f, 2.0f, 0.33f, 0.5f, -99999.992188f, 0.0f, 8.0f, 55.0f, 50.0f, 62.0f, 0.0f, 1.5f},
dCamParam_UNK002,
},
{
'MM23',
0xA,
{0.0f, 0.0f, -99999.992188f, 0.7f, 0.25f, 0.0f, 0.0f, 30.0f, 0.0f, 4.0f, 320.0f, 240.0f, 900.0f, 0.0f, 34.0f, 0.0f, -5.0f, 60.0f, 0.0f, 2.6f, 0.33f, 0.66f, -99999.992188f, 0.0f, 8.0f, 55.0f, 50.0f, 60.0f, 0.0f, 0.8f},
dCamParam_UNK002,
},
{
'FN38',
0x1,
{1.0f, 0.0f, -99999.992188f, 0.75f, 0.25f, 30.0f, -99999.992188f, -99999.992188f, -99999.992188f, -99999.992188f, 800.0f, 600.0f, -99999.992188f, 0.66f, 0.15f, 15.0f, -40.0f, 60.0f, 2.0f, 0.05f, 0.3f, 0.05f, -99999.992188f, 0.8f, 0.1f, 62.0f, -99999.992188f, -99999.992188f, -99999.992188f, 0.05f},
dCamParam_UNK001 | dCamParam_UNK004 | dCamParam_UNK400,
},
#endif
};
const s32 dCamParam_c::style_num = ARRAY_SIZE(styles);
+4 -1
View File
@@ -5,7 +5,10 @@
#include "d/d_camera.h"
dCamera__Type dCamera_c::types[63] = {
// Note: Not matching for JPN yet.
// All these array values are different because they're indexes into dCamParam_c::styles, which got shifted around.
// Need to make an enum for these.
const dCamera__Type dCamera_c::types[63] = {
{ "Empty", {
{ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF },
{ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF },
+2155 -266
View File
File diff suppressed because it is too large Load Diff
+28 -28
View File
@@ -47,7 +47,7 @@ void dCamera_c::getEvXyzData(cXyz*, char*, cXyz) {
}
/* 800B066C-800B074C .text getEvStringData__9dCamera_cFPcPcPc */
void dCamera_c::getEvStringData(char*, char*, char*) {
bool dCamera_c::getEvStringData(char*, char*, char*) {
/* Nonmatching */
}
@@ -67,137 +67,137 @@ void dCamera_c::getEvActor(char*, char*) {
}
/* 800B0A20-800B0AF8 .text pauseEvCamera__9dCamera_cFv */
void dCamera_c::pauseEvCamera() {
bool dCamera_c::pauseEvCamera() {
/* Nonmatching */
}
/* 800B0AF8-800B14D4 .text fixedFrameEvCamera__9dCamera_cFv */
void dCamera_c::fixedFrameEvCamera() {
bool dCamera_c::fixedFrameEvCamera() {
/* Nonmatching */
}
/* 800B14D4-800B18E4 .text stokerEvCamera__9dCamera_cFv */
void dCamera_c::stokerEvCamera() {
bool dCamera_c::stokerEvCamera() {
/* Nonmatching */
}
/* 800B18E4-800B2680 .text rollingEvCamera__9dCamera_cFv */
void dCamera_c::rollingEvCamera() {
bool dCamera_c::rollingEvCamera() {
/* Nonmatching */
}
/* 800B2680-800B2B60 .text fixedPositionEvCamera__9dCamera_cFv */
void dCamera_c::fixedPositionEvCamera() {
bool dCamera_c::fixedPositionEvCamera() {
/* Nonmatching */
}
/* 800B2B60-800B3CC8 .text uniformTransEvCamera__9dCamera_cFv */
void dCamera_c::uniformTransEvCamera() {
bool dCamera_c::uniformTransEvCamera() {
/* Nonmatching */
}
/* 800B3E18-800B5110 .text uniformBrakeEvCamera__9dCamera_cFv */
void dCamera_c::uniformBrakeEvCamera() {
bool dCamera_c::uniformBrakeEvCamera() {
/* Nonmatching */
}
/* 800B514C-800B6434 .text uniformAcceleEvCamera__9dCamera_cFv */
void dCamera_c::uniformAcceleEvCamera() {
bool dCamera_c::uniformAcceleEvCamera() {
/* Nonmatching */
}
/* 800B6470-800B7640 .text watchActorEvCamera__9dCamera_cFv */
void dCamera_c::watchActorEvCamera() {
bool dCamera_c::watchActorEvCamera() {
/* Nonmatching */
}
/* 800B76C8-800B7E00 .text restorePosEvCamera__9dCamera_cFv */
void dCamera_c::restorePosEvCamera() {
bool dCamera_c::restorePosEvCamera() {
/* Nonmatching */
}
/* 800B7E00-800B7EBC .text talktoEvCamera__9dCamera_cFv */
void dCamera_c::talktoEvCamera() {
bool dCamera_c::talktoEvCamera() {
/* Nonmatching */
}
/* 800B7EBC-800B8108 .text maptoolIdEvCamera__9dCamera_cFv */
void dCamera_c::maptoolIdEvCamera() {
bool dCamera_c::maptoolIdEvCamera() {
/* Nonmatching */
}
/* 800B8108-800B81D0 .text styleEvCamera__9dCamera_cFv */
void dCamera_c::styleEvCamera() {
bool dCamera_c::styleEvCamera() {
/* Nonmatching */
}
/* 800B81D0-800B8AB8 .text gameOverEvCamera__9dCamera_cFv */
void dCamera_c::gameOverEvCamera() {
bool dCamera_c::gameOverEvCamera() {
/* Nonmatching */
}
/* 800B8AB8-800B8C90 .text tactEvCamera__9dCamera_cFv */
void dCamera_c::tactEvCamera() {
bool dCamera_c::tactEvCamera() {
/* Nonmatching */
}
/* 800B8C90-800B99B8 .text windDirectionEvCamera__9dCamera_cFv */
void dCamera_c::windDirectionEvCamera() {
bool dCamera_c::windDirectionEvCamera() {
/* Nonmatching */
}
/* 800B99B8-800B9FB0 .text turnToActorEvCamera__9dCamera_cFv */
void dCamera_c::turnToActorEvCamera() {
bool dCamera_c::turnToActorEvCamera() {
/* Nonmatching */
}
/* 800B9FB0-800BA688 .text tornadoWarpEvCamera__9dCamera_cFv */
void dCamera_c::tornadoWarpEvCamera() {
bool dCamera_c::tornadoWarpEvCamera() {
/* Nonmatching */
}
/* 800BA688-800BA7BC .text saveEvCamera__9dCamera_cFv */
void dCamera_c::saveEvCamera() {
bool dCamera_c::saveEvCamera() {
/* Nonmatching */
}
/* 800BA7BC-800BA904 .text loadEvCamera__9dCamera_cFv */
void dCamera_c::loadEvCamera() {
bool dCamera_c::loadEvCamera() {
/* Nonmatching */
}
/* 800BA904-800BB39C .text useItem0EvCamera__9dCamera_cFv */
void dCamera_c::useItem0EvCamera() {
bool dCamera_c::useItem0EvCamera() {
/* Nonmatching */
}
/* 800BB39C-800BBD88 .text useItem1EvCamera__9dCamera_cFv */
void dCamera_c::useItem1EvCamera() {
bool dCamera_c::useItem1EvCamera() {
/* Nonmatching */
}
/* 800BBD88-800BC364 .text getItemEvCamera__9dCamera_cFv */
void dCamera_c::getItemEvCamera() {
bool dCamera_c::getItemEvCamera() {
/* Nonmatching */
}
/* 800BC364-800BC9D8 .text possessedEvCamera__9dCamera_cFv */
void dCamera_c::possessedEvCamera() {
bool dCamera_c::possessedEvCamera() {
/* Nonmatching */
}
/* 800BC9D8-800BCDA0 .text fixedFramesEvCamera__9dCamera_cFv */
void dCamera_c::fixedFramesEvCamera() {
bool dCamera_c::fixedFramesEvCamera() {
/* Nonmatching */
}
/* 800BCDA0-800BCFE8 .text bSplineEvCamera__9dCamera_cFv */
void dCamera_c::bSplineEvCamera() {
bool dCamera_c::bSplineEvCamera() {
/* Nonmatching */
}
/* 800BCFE8-800BD678 .text twoActor0EvCamera__9dCamera_cFv */
void dCamera_c::twoActor0EvCamera() {
bool dCamera_c::twoActor0EvCamera() {
/* Nonmatching */
}
File diff suppressed because it is too large Load Diff
+92
View File
@@ -0,0 +1,92 @@
#include <dolphin/mtx/mtx.h>
#include <dolphin/mtx/mtx44.h>
#include <dolphin/os/OS.h>
#include <math.h>
void C_MTXFrustum(Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f) {
f32 tmp;
ASSERTMSGLINE(105, m, "MTXFrustum(): NULL Mtx44Ptr 'm' ");
ASSERTMSGLINE(106, t != b, "MTXFrustum(): 't' and 'b' clipping planes are equal ");
ASSERTMSGLINE(107, l != r, "MTXFrustum(): 'l' and 'r' clipping planes are equal ");
ASSERTMSGLINE(108, n != f, "MTXFrustum(): 'n' and 'f' clipping planes are equal ");
tmp = 1 / (r - l);
m[0][0] = (2 * n * tmp);
m[0][1] = 0;
m[0][2] = (tmp * (r + l));
m[0][3] = 0;
tmp = 1 / (t - b);
m[1][0] = 0;
m[1][1] = (2 * n * tmp);
m[1][2] = (tmp * (t + b));
m[1][3] = 0;
m[2][0] = 0;
m[2][1] = 0;
tmp = 1 / (f - n);
m[2][2] = (-n * tmp);
m[2][3] = (tmp * -(f * n));
m[3][0] = 0;
m[3][1] = 0;
m[3][2] = -1;
m[3][3] = 0;
}
void C_MTXPerspective(Mtx44 m, f32 fovY, f32 aspect, f32 n, f32 f) {
f32 angle;
f32 cot;
f32 tmp;
ASSERTMSGLINE(179, m, "MTXPerspective(): NULL Mtx44Ptr 'm' ");
ASSERTMSGLINE(180, (fovY > 0.0) && (fovY < 180.0), "MTXPerspective(): 'fovY' out of range ");
ASSERTMSGLINE(181, 0.0f != aspect, "MTXPerspective(): 'aspect' is 0 ");
angle = (0.5f * fovY);
angle = MTXDegToRad(angle);
cot = 1 / tanf(angle);
m[0][0] = (cot / aspect);
m[0][1] = 0;
m[0][2] = 0;
m[0][3] = 0;
m[1][0] = 0;
m[1][1] = (cot);
m[1][2] = 0;
m[1][3] = 0;
m[2][0] = 0;
m[2][1] = 0;
tmp = 1 / (f - n);
m[2][2] = (-n * tmp);
m[2][3] = (tmp * -(f * n));
m[3][0] = 0;
m[3][1] = 0;
m[3][2] = -1;
m[3][3] = 0;
}
void C_MTXOrtho(Mtx44 m, f32 t, f32 b, f32 l, f32 r, f32 n, f32 f) {
f32 tmp;
ASSERTMSGLINE(254, m, "MTXOrtho(): NULL Mtx44Ptr 'm' ");
ASSERTMSGLINE(255, t != b, "MTXOrtho(): 't' and 'b' clipping planes are equal ");
ASSERTMSGLINE(256, l != r, "MTXOrtho(): 'l' and 'r' clipping planes are equal ");
ASSERTMSGLINE(257, n != f, "MTXOrtho(): 'n' and 'f' clipping planes are equal ");
tmp = 1 / (r - l);
m[0][0] = 2 * tmp;
m[0][1] = 0;
m[0][2] = 0;
m[0][3] = (tmp * -(r + l));
tmp = 1 / (t - b);
m[1][0] = 0;
m[1][1] = 2 * tmp;
m[1][2] = 0;
m[1][3] = (tmp * -(t + b));
m[2][0] = 0;
m[2][1] = 0;
tmp = 1 / (f - n);
m[2][2] = (-1 * tmp);
m[2][3] = (-f * tmp);
m[3][0] = 0;
m[3][1] = 0;
m[3][2] = 0;
m[3][3] = 1;
}
+212
View File
@@ -0,0 +1,212 @@
#include <dolphin/mtx/mtxvec.h>
#include <dolphin/os/OS.h>
void C_MTXMultVec(const Mtx m, const Vec* src, Vec* dst) {
Vec vTmp;
ASSERTMSGLINE(66, m, "MTXMultVec(): NULL MtxPtr 'm' ");
ASSERTMSGLINE(67, src, "MTXMultVec(): NULL VecPtr 'src' ");
ASSERTMSGLINE(68, dst, "MTXMultVec(): NULL VecPtr 'dst' ");
vTmp.x = m[0][3] + ((m[0][2] * src->z) + ((m[0][0] * src->x) + (m[0][1] * src->y)));
vTmp.y = m[1][3] + ((m[1][2] * src->z) + ((m[1][0] * src->x) + (m[1][1] * src->y)));
vTmp.z = m[2][3] + ((m[2][2] * src->z) + ((m[2][0] * src->x) + (m[2][1] * src->y)));
dst->x = vTmp.x;
dst->y = vTmp.y;
dst->z = vTmp.z;
}
#ifdef __MWERKS__
asm void PSMTXMultVec(const register Mtx m, const register Vec* src, register Vec* dst) {
nofralloc
psq_l f0, Vec.x(src), 0, 0
psq_l f2, 0(m), 0, 0
psq_l f1, Vec.z(src), 1, 0
ps_mul f4, f2, f0
psq_l f3, 8(m), 0, 0
ps_madd f5, f3, f1, f4
psq_l f8, 16(m), 0, 0
ps_sum0 f6, f5, f6, f5
psq_l f9, 24(m), 0, 0
ps_mul f10, f8, f0
psq_st f6, Vec.x(dst), 1, 0
ps_madd f11, f9, f1, f10
psq_l f2, 32(m), 0, 0
ps_sum0 f12, f11, f12, f11
psq_l f3, 40(m), 0, 0
ps_mul f4, f2, f0
psq_st f12, Vec.y(dst), 1, 0
ps_madd f5, f3, f1, f4
ps_sum0 f6, f5, f6, f5
psq_st f6, Vec.z(dst), 1, 0
blr
}
#endif
void C_MTXMultVecArray(const Mtx m, const Vec* srcBase, Vec* dstBase, u32 count) {
u32 i;
Vec vTmp;
ASSERTMSGLINE(168, m, "MTXMultVecArray(): NULL MtxPtr 'm' ");
ASSERTMSGLINE(169, srcBase, "MTXMultVecArray(): NULL VecPtr 'srcBase' ");
ASSERTMSGLINE(170, dstBase, "MTXMultVecArray(): NULL VecPtr 'dstBase' ");
ASSERTMSGLINE(171, count > 1, "MTXMultVecArray(): count must be greater than 1.");
for(i = 0; i < count; i++) {
vTmp.x = m[0][3] + ((m[0][2] * srcBase->z) + ((m[0][0] * srcBase->x) + (m[0][1] * srcBase->y)));
vTmp.y = m[1][3] + ((m[1][2] * srcBase->z) + ((m[1][0] * srcBase->x) + (m[1][1] * srcBase->y)));
vTmp.z = m[2][3] + ((m[2][2] * srcBase->z) + ((m[2][0] * srcBase->x) + (m[2][1] * srcBase->y)));
dstBase->x = vTmp.x;
dstBase->y = vTmp.y;
dstBase->z = vTmp.z;
srcBase++;
dstBase++;
}
}
#ifdef __MWERKS__
asm void PSMTXMultVecArray(const register Mtx m, const register Vec* srcBase, register Vec* dstBase, register u32 count) {
nofralloc
psq_l f13, 0x0(m), 0, 0
psq_l f12, 0x10(m), 0, 0
subi count, count, 0x1
psq_l f11, 0x8(m), 0, 0
ps_merge00 f0, f13, f12
subi dstBase, dstBase, 0x4
psq_l f10, 0x18(m), 0, 0
ps_merge11 f1, f13, f12
mtctr count
psq_l f4, 0x20(m), 0, 0
ps_merge00 f2, f11, f10
psq_l f5, 0x28(m), 0, 0
ps_merge11 f3, f11, f10
psq_l f6, 0x0(srcBase), 0, 0
psq_lu f7, 0x8(srcBase), 1, 0
ps_madds0 f8, f0, f6, f3
ps_mul f9, f4, f6
ps_madds1 f8, f1, f6, f8
ps_madd f10, f5, f7, f9
L_000003C4:
psq_lu f6, 0x4(srcBase), 0, 0
ps_madds0 f12, f2, f7, f8
psq_lu f7, 0x8(srcBase), 1, 0
ps_sum0 f13, f10, f9, f10
ps_madds0 f8, f0, f6, f3
ps_mul f9, f4, f6
psq_stu f12, 0x4(dstBase), 0, 0
ps_madds1 f8, f1, f6, f8
psq_stu f13, 0x8(dstBase), 1, 0
ps_madd f10, f5, f7, f9
bdnz L_000003C4
ps_madds0 f12, f2, f7, f8
ps_sum0 f13, f10, f9, f10
psq_stu f12, 0x4(dstBase), 0, 0
psq_stu f13, 0x8(dstBase), 1, 0
blr
}
#endif
void C_MTXMultVecSR(const Mtx m, const Vec* src, Vec* dst) {
Vec vTmp;
ASSERTMSGLINE(313, m, "MTXMultVecSR(): NULL MtxPtr 'm' ");
ASSERTMSGLINE(314, src, "MTXMultVecSR(): NULL VecPtr 'src' ");
ASSERTMSGLINE(315, dst, "MTXMultVecSR(): NULL VecPtr 'dst' ");
vTmp.x = (m[0][2] * src->z) + ((m[0][0] * src->x) + (m[0][1] * src->y));
vTmp.y = (m[1][2] * src->z) + ((m[1][0] * src->x) + (m[1][1] * src->y));
vTmp.z = (m[2][2] * src->z) + ((m[2][0] * src->x) + (m[2][1] * src->y));
dst->x = vTmp.x;
dst->y = vTmp.y;
dst->z = vTmp.z;
}
#ifdef __MWERKS__
asm void PSMTXMultVecSR(const register Mtx m, const register Vec* src, register Vec* dst) {
nofralloc
psq_l f0, 0x0(m), 0, 0
psq_l f6, 0x0(src), 0, 0
psq_l f2, 0x10(m), 0, 0
ps_mul f8, f0, f6
psq_l f4, 0x20(m), 0, 0
ps_mul f10, f2, f6
psq_l f7, 0x8(src), 1, 0
ps_mul f12, f4, f6
psq_l f3, 0x18(m), 0, 0
ps_sum0 f8, f8, f8, f8
psq_l f5, 0x28(m), 0, 0
ps_sum0 f10, f10, f10, f10
psq_l f1, 0x8(m), 0, 0
ps_sum0 f12, f12, f12, f12
ps_madd f9, f1, f7, f8
psq_st f9, 0x0(dst), 1, 0
ps_madd f11, f3, f7, f10
psq_st f11, 0x4(dst), 1, 0
ps_madd f13, f5, f7, f12
psq_st f13, 0x8(dst), 1, 0
blr
}
#endif
void C_MTXMultVecArraySR(const Mtx m, const Vec* srcBase, Vec* dstBase, u32 count) {
u32 i;
Vec vTmp;
ASSERTMSGLINE(410, m, "MTXMultVecArraySR(): NULL MtxPtr 'm' ");
ASSERTMSGLINE(411, srcBase, "MTXMultVecArraySR(): NULL VecPtr 'srcBase' ");
ASSERTMSGLINE(412, dstBase, "MTXMultVecArraySR(): NULL VecPtr 'dstBase' ");
ASSERTMSGLINE(413, count > 1, "MTXMultVecArraySR(): count must be greater than 1.");
for(i = 0; i < count; i++) {
vTmp.x = (m[0][2] * srcBase->z) + ((m[0][0] * srcBase->x) + (m[0][1] * srcBase->y));
vTmp.y = (m[1][2] * srcBase->z) + ((m[1][0] * srcBase->x) + (m[1][1] * srcBase->y));
vTmp.z = (m[2][2] * srcBase->z) + ((m[2][0] * srcBase->x) + (m[2][1] * srcBase->y));
dstBase->x = vTmp.x;
dstBase->y = vTmp.y;
dstBase->z = vTmp.z;
srcBase++;
dstBase++;
}
}
#ifdef __MWERKS__
asm void PSMTXMultVecArraySR(const register Mtx m, const register Vec* srcBase, register Vec* dstBase, register u32 count) {
nofralloc
psq_l f13, 0x0(m), 0, 0
psq_l f12, 0x10(m), 0, 0
subi count, count, 0x1
psq_l f11, 0x8(m), 1, 0
ps_merge00 f0, f13, f12
subi dstBase, dstBase, 0x4
psq_l f10, 0x18(m), 1, 0
ps_merge11 f1, f13, f12
mtctr count
psq_l f3, 0x20(m), 0, 0
ps_merge00 f2, f11, f10
psq_l f4, 0x28(m), 1, 0
psq_l f6, 0x0(srcBase), 0, 0
psq_lu f7, 0x8(srcBase), 1, 0
ps_muls0 f8, f0, f6
ps_mul f9, f3, f6
ps_madds1 f8, f1, f6, f8
ps_madd f10, f4, f7, f9
L_000007D0:
psq_lu f6, 0x4(srcBase), 0, 0
ps_madds0 f12, f2, f7, f8
psq_lu f7, 0x8(srcBase), 1, 0
ps_sum0 f13, f10, f9, f9
ps_muls0 f8, f0, f6
ps_mul f9, f3, f6
psq_stu f12, 0x4(dstBase), 0, 0
ps_madds1 f8, f1, f6, f8
psq_stu f13, 0x8(dstBase), 1, 0
ps_madd f10, f4, f7, f9
bdnz L_000007D0
ps_madds0 f12, f2, f7, f8
ps_sum0 f13, f10, f9, f9
psq_stu f12, 0x4(dstBase), 0, 0
psq_stu f13, 0x8(dstBase), 1, 0
blr
}
#endif
+224
View File
@@ -0,0 +1,224 @@
#include <dolphin/mtx/quat.h>
#include <dolphin/os/OS.h>
#include <math.h>
void C_QUATMultiply(const Quaternion* p, const Quaternion* q, Quaternion* pq) {
Quaternion* r;
Quaternion pqTmp;
ASSERTMSGLINE(193, p, "QUATMultiply(): NULL QuaternionPtr 'p' ");
ASSERTMSGLINE(194, q, "QUATMultiply(): NULL QuaternionPtr 'q' ");
ASSERTMSGLINE(195, pq, "QUATMultiply(): NULL QuaternionPtr 'pq' ");
if (p == pq || q == pq){
r = &pqTmp;
} else {
r = pq;
}
r->w = (p->w * q->w) - (p->x * q->x) - (p->y * q->y) - (p->z * q->z);
r->x = (p->w * q->x) + (p->x * q->w) + (p->y * q->z) - (p->z * q->y);
r->y = (p->w * q->y) + (p->y * q->w) + (p->z * q->x) - (p->x * q->z);
r->z = (p->w * q->z) + (p->z * q->w) + (p->x * q->y) - (p->y * q->x);
if (r == &pqTmp) {
*pq = pqTmp;
}
}
#ifdef __MWERKS__
void PSQUATMultiply(const register Quaternion* p, const register Quaternion* q, register Quaternion* pq) {
register f32 pxy, pzw;
register f32 qxy, qzw;
register f32 pnxy, pnzw, pnxny, pnznw;
register f32 rxy, rzw;
register f32 sxy, szw;
asm {
psq_l pxy, 0x0(p), 0, 0
psq_l pzw, 0x8(p), 0, 0
psq_l qxy, 0x0(q), 0, 0
ps_neg pnxny, pxy
psq_l qzw, 0x8(q), 0, 0
ps_neg pnznw, pzw
ps_merge01 pnxy, pnxny, pxy
ps_muls0 rxy, pzw, qxy
ps_muls0 rzw, pnxny, qxy
ps_merge01 pnzw, pnznw, pzw
ps_muls1 szw, pnxy, qxy
ps_madds0 rxy, pnxy, qzw, rxy
ps_muls1 sxy, pnzw, qxy
ps_madds0 rzw, pnzw, qzw, rzw
ps_madds1 szw, pnznw, qzw, szw
ps_merge10 rxy, rxy, rxy
ps_madds1 sxy, pxy, qzw, sxy
ps_merge10 rzw, rzw, rzw
ps_add rxy, rxy, sxy
psq_st rxy, 0x0(pq), 0, 0
ps_sub rzw, rzw, szw
psq_st rzw, 0x8(pq), 0, 0
}
}
#endif
void C_QUATNormalize(const Quaternion* src, Quaternion* unit) {
f32 mag;
ASSERTMSGLINE(407, src, "QUATNormalize(): NULL QuaternionPtr 'src' ");
ASSERTMSGLINE(408, unit, "QUATNormalize(): NULL QuaternionPtr 'unit' ");
mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z) + (src->w * src->w);
if (mag >= 0.00001f) {
mag = 1.0f / sqrtf(mag);
unit->x = src->x * mag;
unit->y = src->y * mag;
unit->z = src->z * mag;
unit->w = src->w * mag;
} else {
unit->x = unit->y = unit->z = unit->w = 0.0f;
}
}
#ifdef __MWERKS__
void PSQUATNormalize(const register Quaternion* src, register Quaternion* unit) {
register f32 sxy, szw;
register f32 mag, rsqmag;
register f32 diff;
register f32 c_zero;
register f32 nwork0, nwork1;
register f32 epsilon = 0.00001f;
register f32 c_half = 0.5f;
register f32 c_three = 3.0f;
asm {
psq_l sxy, 0x0(src), 0, 0
ps_mul mag, sxy, sxy
psq_l szw, 0x8(src), 0, 0
ps_sub c_zero, epsilon, epsilon
ps_madd mag, szw, szw, mag
ps_sum0 mag, mag, mag, mag
frsqrte rsqmag, mag
ps_sub diff, mag, epsilon
fmul nwork0, rsqmag, rsqmag
fmul nwork1, rsqmag, c_half
fnmsub nwork0, nwork0, mag, c_three
fmul rsqmag, nwork0, nwork1
ps_sel rsqmag, diff, rsqmag, c_zero
ps_muls0 sxy, sxy, rsqmag
ps_muls0 szw, szw, rsqmag
psq_st sxy, 0x0(unit), 0, 0
psq_st szw, 0x8(unit), 0, 0
}
}
#endif
void C_QUATInverse(const Quaternion* src, Quaternion* inv) {
f32 mag, norminv;
ASSERTMSGLINE(498, src, "QUATInverse(): NULL QuaternionPtr 'src' ");
ASSERTMSGLINE(499, inv, "QUATInverse(): NULL QuaternionPtr 'inv' ");
mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z) + (src->w * src->w);
if (mag == 0.0f) {
mag = 1.0f;
}
norminv = 1.0f / mag;
inv->x = -src->x * norminv;
inv->y = -src->y * norminv;
inv->z = -src->z * norminv;
inv->w = src->w * norminv;
}
#ifdef __MWERKS__
void PSQUATInverse(const register Quaternion* src, register Quaternion* inv) {
register f32 sxy, szw;
register f32 izz, iww;
register f32 mag, nmag;
register f32 norminv, nninv;
register f32 nwork0;
register f32 c_two;
register f32 c_zero;
register f32 c_one = 1.0f;
asm {
psq_l sxy, 0x0(src), 0, 0
ps_mul mag, sxy, sxy
ps_sub c_zero, c_one, c_one
psq_l szw, 0x8(src), 0, 0
ps_madd mag, szw, szw, mag
ps_add c_two, c_one, c_one
ps_sum0 mag, mag, mag, mag
fcmpu cr0, mag, c_zero
beq L_00000948
fres norminv, mag
ps_neg nmag, mag
ps_nmsub nwork0, mag, norminv, c_two
ps_mul norminv, norminv, nwork0
b L_0000094C
L_00000948:
fmr norminv, c_one
L_0000094C:
ps_neg nninv, norminv
ps_muls1 iww, norminv, szw
ps_muls0 sxy, sxy, nninv
psq_st iww, 0xc(inv), 1, 0
ps_muls0 izz, szw, nninv
psq_st sxy, 0x0(inv), 0, 0
psq_st izz, 0x8(inv), 1, 0
}
}
#endif
void C_QUATRotAxisRad(Quaternion* r, const Vec* axis, f32 rad) {
f32 half, sh, ch;
Vec nAxis;
ASSERTMSGLINE(758, r, "QUATRotAxisRad(): NULL QuaternionPtr 'r' ");
ASSERTMSGLINE(759, axis, "QUATRotAxisRad(): NULL VecPtr 'axis' ");
VECNormalize(axis, &nAxis);
half = rad * 0.5f;
sh = sinf(half);
ch = cosf(half);
r->x = sh * nAxis.x;
r->y = sh * nAxis.y;
r->z = sh * nAxis.z;
r->w = ch;
}
void C_QUATSlerp(const Quaternion* p, const Quaternion* q, Quaternion* r, f32 t) {
f32 theta, sin_th, cos_th;
f32 tp, tq;
ASSERTMSGLINE(869, p, "QUATSlerp(): NULL QuaternionPtr 'p' ");
ASSERTMSGLINE(870, q, "QUATSlerp(): NULL QuaternionPtr 'q' ");
ASSERTMSGLINE(871, r, "QUATSlerp(): NULL QuaternionPtr 'r' ");
cos_th = p->x * q->x + p->y * q->y + p->z * q->z + p->w * q->w;
tq = 1.0f;
if (cos_th < 0.0f) {
cos_th = -cos_th;
tq = -tq;
}
if (cos_th <= 0.99999f) {
theta = acosf(cos_th);
sin_th = sinf(theta);
tp = sinf((1.0f - t) * theta) / sin_th;
tq *= sinf(t * theta) / sin_th;
} else {
tp = 1.0f - t;
tq *= t;
}
r->x = (tp * p->x) + (tq * q->x);
r->y = (tp * p->y) + (tq * q->y);
r->z = (tp * p->z) + (tq * q->z);
r->w = (tp * p->w) + (tq * q->w);
}
+365
View File
@@ -0,0 +1,365 @@
#include <dolphin/mtx/vec.h>
#include <dolphin/os/OS.h>
#include <math.h>
void C_VECAdd(const Vec* a, const Vec* b, Vec* ab) {
ASSERTMSGLINE(108, a, "VECAdd(): NULL VecPtr 'a' ");
ASSERTMSGLINE(109, b, "VECAdd(): NULL VecPtr 'b' ");
ASSERTMSGLINE(110, ab, "VECAdd(): NULL VecPtr 'ab' ");
ab->x = a->x + b->x;
ab->y = a->y + b->y;
ab->z = a->z + b->z;
}
#ifdef __MWERKS__
asm void PSVECAdd(const register Vec* a, const register Vec* b, register Vec* ab) {
psq_l f2, Vec.x(a), 0, 0
psq_l f4, Vec.x(b), 0, 0
ps_add f6, f2, f4
psq_st f6, Vec.x(ab), 0, 0
psq_l f3, Vec.z(a), 1, 0
psq_l f5, Vec.z(b), 1, 0
ps_add f7, f3, f5
psq_st f7, Vec.z(ab), 1, 0
}
#endif
void C_VECSubtract(const Vec* a, const Vec* b, Vec* a_b) {
ASSERTMSGLINE(177, a, "VECSubtract(): NULL VecPtr 'a' ");
ASSERTMSGLINE(178, b, "VECSubtract(): NULL VecPtr 'b' ");
ASSERTMSGLINE(179, a_b, "VECSubtract(): NULL VecPtr 'a_b' ");
a_b->x = a->x - b->x;
a_b->y = a->y - b->y;
a_b->z = a->z - b->z;
}
#ifdef __MWERKS__
asm void PSVECSubtract(const register Vec* a, const register Vec* b, register Vec* a_b) {
psq_l f2, Vec.x(a), 0, 0
psq_l f4, Vec.x(b), 0, 0
ps_sub f6, f2, f4
psq_st f6, Vec.x(a_b), 0, 0
psq_l f3, Vec.z(a), 1, 0
psq_l f5, Vec.z(b), 1, 0
ps_sub f7, f3, f5
psq_st f7, Vec.z(a_b), 1, 0
}
#endif
void C_VECScale(const Vec* src, Vec* dst, f32 scale) {
ASSERTMSGLINE(247, src, "VECScale(): NULL VecPtr 'src' ");
ASSERTMSGLINE(248, dst, "VECScale(): NULL VecPtr 'dst' ");
dst->x = (src->x * scale);
dst->y = (src->y * scale);
dst->z = (src->z * scale);
}
#ifdef __MWERKS__
void PSVECScale(const register Vec* src, register Vec* dst, register f32 scale) {
register f32 vxy, vz, rxy, rz;
asm {
psq_l vxy, 0x0(src), 0, 0
psq_l vz, 0x8(src), 1, 0
ps_muls0 rxy, vxy, scale
psq_st rxy, 0x0(dst), 0, 0
ps_muls0 rz, vz, scale
psq_st rz, 0x8(dst), 1, 0
}
}
#endif
void C_VECNormalize(const Vec* src, Vec* unit) {
f32 mag;
ASSERTMSGLINE(315, src, "VECNormalize(): NULL VecPtr 'src' ");
ASSERTMSGLINE(316, unit, "VECNormalize(): NULL VecPtr 'unit' ");
mag = (src->z * src->z) + ((src->x * src->x) + (src->y * src->y));
ASSERTMSGLINE(321, 0.0f != mag, "VECNormalize(): zero magnitude vector ");
mag = 1.0f / sqrtf(mag);
unit->x = src->x * mag;
unit->y = src->y * mag;
unit->z = src->z * mag;
}
#ifdef __MWERKS__
void PSVECNormalize(const register Vec* src, register Vec* unit) {
register float c_half = 0.5f;
register float c_three = 3.0f;
register float v1_xy;
register float v1_z;
register float xx_zz;
register float xx_yy;
register float sqsum;
register float rsqrt;
register float nwork0;
register float nwork1;
asm {
psq_l v1_xy, 0x0(src), 0, 0
ps_mul xx_yy, v1_xy, v1_xy
psq_l v1_z, 0x8(src), 1, 0
ps_madd xx_zz, v1_z, v1_z, xx_yy
ps_sum0 sqsum, xx_zz, v1_z, xx_yy
frsqrte rsqrt, sqsum
fmuls nwork0, rsqrt, rsqrt
fmuls nwork1, rsqrt, c_half
fnmsubs nwork0, nwork0, sqsum, c_three
fmuls rsqrt, nwork0, nwork1
ps_muls0 v1_xy, v1_xy, rsqrt
psq_st v1_xy, 0x0(unit), 0, 0
ps_muls0 v1_z, v1_z, rsqrt
psq_st v1_z, 0x8(unit), 1, 0
}
}
#endif
f32 C_VECSquareMag(const Vec* v) {
f32 sqmag;
ASSERTMSGLINE(405, v, "VECMag(): NULL VecPtr 'v' ");
sqmag = v->z * v->z + ((v->x * v->x) + (v->y * v->y));
return sqmag;
}
#ifdef __MWERKS__
f32 PSVECSquareMag(const register Vec* v) {
register f32 vxy, vzz, sqmag;
asm {
psq_l vxy, 0x0(v), 0, 0
ps_mul vxy, vxy, vxy
lfs vzz, 0x8(v)
ps_madd sqmag, vzz, vzz, vxy
ps_sum0 sqmag, sqmag, vxy, vxy
}
return sqmag;
}
#endif
f32 C_VECMag(const Vec* v) {
return sqrtf(C_VECSquareMag(v));
}
#ifdef __MWERKS__
f32 PSVECMag(const register Vec* v) {
register f32 vxy, vzz;
register f32 sqmag, rmag;
register f32 nwork0, nwork1;
register f32 c_three, c_half, c_zero;
c_half = 0.5f;
asm {
psq_l vxy, 0x0(v), 0, 0
ps_mul vxy, vxy, vxy
lfs vzz, 0x8(v)
fsubs c_zero, c_half, c_half
ps_madd sqmag, vzz, vzz, vxy
ps_sum0 sqmag, sqmag, vxy, vxy
fcmpu cr0, sqmag, c_zero
beq L_000005F0
frsqrte rmag, sqmag
}
c_three = 3.0f;
asm {
fmuls nwork0, rmag, rmag
fmuls nwork1, rmag, c_half
fnmsubs nwork0, nwork0, sqmag, c_three
fmuls rmag, nwork0, nwork1
fmuls sqmag, sqmag, rmag
L_000005F0:
}
return sqmag;
}
#endif
f32 C_VECDotProduct(const Vec* a, const Vec* b) {
f32 dot;
ASSERTMSGLINE(540, a, "VECDotProduct(): NULL VecPtr 'a' ");
ASSERTMSGLINE(541, b, "VECDotProduct(): NULL VecPtr 'b' ");
dot = (a->z * b->z) + ((a->x * b->x) + (a->y * b->y));
return dot;
}
#ifdef __MWERKS__
asm f32 PSVECDotProduct(const register Vec* a, const register Vec* b) {
psq_l f2, Vec.y(a), 0, 0
psq_l f3, Vec.y(b), 0, 0
ps_mul f2, f2, f3
psq_l f5, Vec.x(a), 0, 0
psq_l f4, Vec.x(b), 0, 0
ps_madd f3, f5, f4, f2
ps_sum0 f1, f3, f2, f2
}
#endif
void C_VECCrossProduct(const Vec* a, const Vec* b, Vec* axb) {
Vec vTmp;
ASSERTMSGLINE(602, a, "VECCrossProduct(): NULL VecPtr 'a' ");
ASSERTMSGLINE(603, b, "VECCrossProduct(): NULL VecPtr 'b' ");
ASSERTMSGLINE(604, axb, "VECCrossProduct(): NULL VecPtr 'axb' ");
vTmp.x = (a->y * b->z) - (a->z * b->y);
vTmp.y = (a->z * b->x) - (a->x * b->z);
vTmp.z = (a->x * b->y) - (a->y * b->x);
axb->x = vTmp.x;
axb->y = vTmp.y;
axb->z = vTmp.z;
}
#ifdef __MWERKS__
asm void PSVECCrossProduct(const register Vec* a, const register Vec* b, register Vec* axb) {
psq_l f1, Vec.x(b), 0, 0
lfs f2, Vec.z(a)
psq_l f0, Vec.x(a), 0, 0
ps_merge10 f6, f1, f1
lfs f3, Vec.z(b)
ps_mul f4, f1, f2
ps_muls0 f7, f1, f0
ps_msub f5, f0, f3, f4
ps_msub f8, f0, f6, f7
ps_merge11 f9, f5, f5
ps_merge01 f10, f5, f8
psq_st f9, Vec.x(axb), 1, 0
ps_neg f10, f10
psq_st f10, Vec.y(axb), 0, 0
}
#endif
void C_VECHalfAngle(const Vec* a, const Vec* b, Vec* half) {
Vec aTmp;
Vec bTmp;
Vec hTmp;
ASSERTMSGLINE(707, a, "VECHalfAngle(): NULL VecPtr 'a' ");
ASSERTMSGLINE(708, b, "VECHalfAngle(): NULL VecPtr 'b' ");
ASSERTMSGLINE(709, half, "VECHalfAngle(): NULL VecPtr 'half' ");
aTmp.x = -a->x;
aTmp.y = -a->y;
aTmp.z = -a->z;
bTmp.x = -b->x;
bTmp.y = -b->y;
bTmp.z = -b->z;
VECNormalize(&aTmp, &aTmp);
VECNormalize(&bTmp, &bTmp);
VECAdd(&aTmp, &bTmp, &hTmp);
if (VECDotProduct(&hTmp, &hTmp) > 0.0f) {
VECNormalize(&hTmp, half);
return;
}
*half = hTmp;
}
void C_VECReflect(const Vec* src, const Vec* normal, Vec* dst) {
f32 cosA;
Vec uI;
Vec uN;
ASSERTMSGLINE(763, src, "VECReflect(): NULL VecPtr 'src' ");
ASSERTMSGLINE(764, normal, "VECReflect(): NULL VecPtr 'normal' ");
ASSERTMSGLINE(765, dst, "VECReflect(): NULL VecPtr 'dst' ");
uI.x = -src->x;
uI.y = -src->y;
uI.z = -src->z;
VECNormalize(&uI, &uI);
VECNormalize(normal, &uN);
cosA = VECDotProduct(&uI, &uN);
dst->x = (2.0f * uN.x * cosA) - uI.x;
dst->y = (2.0f * uN.y * cosA) - uI.y;
dst->z = (2.0f * uN.z * cosA) - uI.z;
VECNormalize(dst, dst);
}
f32 C_VECSquareDistance(const Vec* a, const Vec* b) {
Vec diff;
diff.x = a->x - b->x;
diff.y = a->y - b->y;
diff.z = a->z - b->z;
return (diff.z * diff.z) + ((diff.x * diff.x) + (diff.y * diff.y));
}
#ifdef __MWERKS__
f32 PSVECSquareDistance(const register Vec* a, const register Vec* b) {
register f32 v0yz, v1yz, v0xy, v1xy, dyz, dxy;
register f32 sqdist;
asm {
psq_l v0yz, 0x4(a), 0, 0
psq_l v1yz, 0x4(b), 0, 0
ps_sub dyz, v0yz, v1yz
psq_l v0xy, 0x0(a), 0, 0
psq_l v1xy, 0x0(b), 0, 0
ps_mul dyz, dyz, dyz
ps_sub dxy, v0xy, v1xy
ps_madd sqdist, dxy, dxy, dyz
ps_sum0 sqdist, sqdist, dyz, dyz
}
return sqdist;
}
#endif
f32 C_VECDistance(const Vec* a, const Vec* b) {
return sqrtf(C_VECSquareDistance(a, b));
}
#ifdef __MWERKS__
f32 PSVECDistance(const register Vec* a, const register Vec* b) {
register f32 v0yz, v1yz, v0xy, v1xy, dyz, dxy;
register f32 sqdist, rdist;
register f32 nwork0, nwork1;
register f32 c_half, c_three, c_zero;
asm {
psq_l v0yz, 0x4(a), 0, 0
psq_l v1yz, 0x4(b), 0, 0
ps_sub dyz, v0yz, v1yz
psq_l v0xy, 0x0(a), 0, 0
psq_l v1xy, 0x0(b), 0, 0
ps_mul dyz, dyz, dyz
ps_sub dxy, v0xy, v1xy
}
c_half = 0.5f;
asm {
ps_madd sqdist, dxy, dxy, dyz
fsubs c_zero, c_half, c_half
ps_sum0 sqdist, sqdist, dyz, dyz
fcmpu cr0, c_zero, sqdist
beq L_00000CBC
}
c_three = 3.0f;
asm {
frsqrte rdist, sqdist
fmuls nwork0, rdist, rdist
fmuls nwork1, rdist, c_half
fnmsubs nwork0, nwork0, sqdist, c_three
fmuls rdist, nwork0, nwork1
fmuls sqdist, sqdist, rdist
L_00000CBC:
}
return sqdist;
}
#endif