// // GameObject::getScalePosDelta from 0x645f58 to 0x646068 (272 bytes) // // 7 xrefs: // > PlayerObject::collidedWithObjectInternal @ 0x62ec7c // > PlayerObject::collidedWithObjectInternal @ 0x62f1a0 // > PlayerObject::collidedWithObjectInternal @ 0x62f8fc // > PlayerObject::collidedWithObjectInternal @ 0x62fc30 // > PlayerObject::postCollision @ 0x6396e4 // > PlayerObject::postCollision @ 0x639b48 // > @ 0x58338 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCPoint GameObject::getScalePosDelta(GameObject *a1) { cocos2d::CCPoint *v1; // x8 float *v3; // x20 const cocos2d::CCRect *v4; // x0 float width; // w1 int v8; // w0 cocos2d::CCRect v9; // [xsp+38h] [xbp+38h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v3 = (float *)v1; cocos2d::CCPoint::CCPoint(v1, &stru_1242068); v4 = a1->getObjectRect(a1); cocos2d::CCRect::CCRect(&v9, v4); if ( a1->m_isRotationAligned ) { width = v9.size.width; v9.size.width = v9.size.height; v9.size.height = width; } if ( GameObject::didScaleXChange(a1) ) *v3 = (float)(v9.size.width - (float)((float)(v9.size.width / a1->m_scaleX) * a1->m_customScaleX)) * 0.5; if ( GameObject::didScaleYChange(a1) ) { result.y = 0.5; result.x = (float)(v9.size.height - (float)((float)(v9.size.height / a1->m_scaleY) * a1->m_customScaleY)) * 0.5; v3[1] = result.x; } if ( a1->m_isRotationAligned ) { v8 = *((_DWORD *)v3 + 1); v3[1] = *v3; *(_DWORD *)v3 = v8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source