// // cocos2d::CCOrbitCamera::sphericalRadius from 0x7b6be0 to 0x7b6cea (266 bytes) // // 1 xrefs: // > cocos2d::CCOrbitCamera::startWithTarget @ 0x7b6d14 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:11 +0000 // float __fastcall cocos2d::CCOrbitCamera::sphericalRadius(cocos2d::CCOrbitCamera *this, float *a2, float *a3, float *a4) { float *v7; // r8 float v8; // s18 float v9; // s16 float v10; // s19 float v11; // s17 float v12; // s20 float v13; // r0 float result; // r0 float v15; // [sp+4h] [bp-1Ch] BYREF float v16; // [sp+8h] [bp-18h] BYREF float v17; // [sp+Ch] [bp-14h] BYREF float v18; // [sp+10h] [bp-10h] BYREF float v19; // [sp+14h] [bp-Ch] BYREF float v20; // [sp+18h] [bp-8h] BYREF v7 = (float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 14) + 336))(*((_DWORD *)this + 14)); cocos2d::CCCamera::getEyeXYZ(v7, &v15, &v16, &v17); cocos2d::CCCamera::getCenterXYZ(v7, &v18, &v19, &v20); v8 = v15 - v18; v9 = v16 - v19; v10 = v17 - v20; v11 = sqrtf((float)((float)(v9 * v9) + (float)(v8 * v8)) + (float)(v10 * v10)); v12 = sqrtf((float)(v9 * v9) + (float)(v8 * v8)); if ( v12 == 0.0 ) v12 = 0.00000011921; if ( v11 == 0.0 ) v11 = 0.00000011921; *a3 = acosf(v10 / v11); v13 = asinf(v9 / v12); if ( v8 >= 0.0 ) *a4 = v13; else *a4 = 3.1416 - v13; result = COERCE_FLOAT(cocos2d::CCCamera::getZEye((cocos2d::CCCamera *)LODWORD(v13))); *a2 = v11 / result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source